rollup plugin fails on json import
Open
Beginner friendly
- Dominant language
- TypeScript
- Stars
- 853
- Forks
- 662
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 8
Description
https://github.com/MetaMask/snaps/blob/e95e6709cc3e883582e72994288f3c285ee10d7f/packages/snaps-utils/src/derivation-paths.ts#L2
this line need `with { type: 'json' }` or the rollup plugin fails
```bash
[!] TypeError: Module "file:///Users/hd/code/filsnap/node_modules/.pnpm/@metamask+slip44@3.1.0/node_modules/@metamask/slip44/slip44.json" needs an import attribute of type "json"
```
Contributor guide
Research direction
Open packages/snaps-utils/src/derivation-paths.ts at line 2 and reproduce the failure with the Rollup build that imports @metamask/slip44/slip44.json. Update the import so the JSON module is accepted, then confirm the reported Rollup error no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rollup, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100