You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, this is indeed a Vite issue. I am curious as to why it seems to work fine in my project (there is Typescript, Svelte, and Esbuild otherwise involved so could be one of those).
Describe the bug
I have noticed I cannot use the import type assertions that were included with Node 16.14.2 and onwards.
With Node 16.14.2, JSON import in ESM modules have landed on the same spec as browsers.
However using this syntax in a test module or any module imported (recursively) by Vitest results in a syntax error.
This is somewhat strange as Vite otherwise bundles files like these without issue.
Reproduction
See an example based on the
basic
example in this repo: https://github.com/aMediocreDad/vitest-json-assertSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: