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
Hey, first off thanks for writing this super helpful and concise library.
Unfortunately, after an npm install, I'm unable to get it to work when running 'vite build' on a standard Vite project. Here's the error message:
Error: Cannot find module '/.../node_modules/limited-cache/dist/core/defaultOptions' imported from /.../node_modules/limited-cache/dist/index.js
at new NodeError (node:internal/errors:393:5)
at finalizeResolution (node:internal/modules/esm/resolve:323:11)
at moduleResolve (node:internal/modules/esm/resolve:916:10)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
I was able to fix this by adding .js to the exports in limited-cache/dist/index.js, e.g.
Hey, first off thanks for writing this super helpful and concise library.
Unfortunately, after an npm install, I'm unable to get it to work when running 'vite build' on a standard Vite project. Here's the error message:
I was able to fix this by adding
.js
to the exports inlimited-cache/dist/index.js
, e.g.But then get a similar error for the next import, e.g.
For now I'm just compiling the export I need using this service, but it would be awesome if the npm build worked out of the box.
https://bundlejs.com/?q=limited-cache&treeshake=%5B%7BLimitedCacheObject%7D%5D&config=%7B%22analysis%22%3Aundefined%7D
Thanks
The text was updated successfully, but these errors were encountered: