Bug: Incorrect syntax of json assertion in @base-org/account/dist/core/constants.js:1:37
- Dominant language
- TypeScript
- Stars
- 172
- Forks
- 207
- Avg merge
- 49m
- Merged PRs (30d)
- 1
Description
### Describe the bug
In some projects, when importing wagmi, it fails becuase of the assertion in this package
### Steps
1. Checkout https://github.com/hoprnet/hub-hoprnet-org
2. Update wagmi to latest
3. Run 'yarn dev' to get
```
X [ERROR] Expected ";" but found "with"
node_modules/@base-org/account/dist/core/constants.js:1:37:
1 │ import pkg from '../../package.json' with { type: 'json' };
│ ~~~~
╵ ;
```
### Expected behavior
Assertion following the official ECMAScript specification
### Version
2.4.2
### Additional info
_No response_
### Desktop
_No response_
### Smartphone
_No response_
Contributor guide
Research direction
Reproduce the failure by updating wagmi in hoprnet/hub-hoprnet-org and running `yarn dev`. Start at `node_modules/@base-org/account/dist/core/constants.js:1`, then trace the package source or build entry that produces this import. Done means the generated package uses assertion syntax accepted by the consuming toolchain and the dev server starts without the parser error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100