New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with node 16 "assert {type: 'json'}" is required but can't be parsed by vitest #1610
Comments
Vitest doesn't parse anything, please follow Vite issue: vitejs/vite#4934 |
ok yes thank you for the link to the vite issue. |
I don't think Vite released a new version with a fix, it was merged 2 days ago. You would also need Vite 3 for this to work |
oh yes so I tried with |
Still not work
Vitest latest version
|
Full stack
|
Describe the bug
With node >= 16.14, importing a json file require to add an assertion like
If I don't provide it, I get an error
ERR_IMPORT_ASSERTION_TYPE_MISSING
If I provide it, it breaks the vitest run with
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: