Error importing with vite
Closed this issue · 3 comments
Nedi11 commented
Failed to resolve entry for package "@lemonsqueezy/lemonsqueezy.js". The package may have incorrect main/module/exports specified in its package.json.
I get this when using remix with vite.
JohnCido commented
Same issue with SolidStart+Vite, any possible solution?
JohnCido commented
In the package.json
, the following module
entry is included:
...
"module": "dist/index.mjs",
...
But the index.mjs
file is not present in the dist
folder.
Once I change the dist/index.mjs
to dist/index.js
in node_modules
, everything works fine. The API call works correctly too.
This should be considered as critical bug since it will effect all Vite-based projects.