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
Looks like vite is using the module field in package.json, which points to dist/index.mjs, which has a default export but no named exports. This is the same issue as #240. I think I have a fix for it that won't introduce any breaking changes.
If I import like this:
PhpStorm shows me an error:
And indeed there is no
export default
inindex.d.ts
(that's the file PhpStorm will jump to when I Ctrl-click'json5'
).Vite can build the application though.
If I import like this:
I get no error in PhpStorm but Vite gives me an error:
If I import like this:
I get an error at runtime:
The text was updated successfully, but these errors were encountered: