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
Trying to use this library with webpack, the "module" entry point is used for better try shaking (good :D)
Unfortunately, it looks like your mjs output is a bit mangled. I think your .mjs entry point is ending up pointing to the cjs files, as they are both output to the same directory.
Maybe at some point this library only had 1 file?
index.mjs
import FetchCache from './FetchCache';
export * from './defaultTTL';
export default FetchCache;
//# sourceMappingURL=index.js.map
Points to './FetchCache.js', which is in commonjs format
I'm getting the same error when trying to use this in a React project:
Failed to compile.
Module not found: Error: Can't resolve './defaultTTL' in '/home/mwaddell/Projects/firestorm2gui/node_modules/@sozialhelden/fetch-cache/dist'Did you mean 'defaultTTL.js'?BREAKING CHANGE: The request './defaultTTL' failed to resolve only because it was resolved as fully specified(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').The extension in the request is mandatory for it to be fully specified.Add the extension to the request.error Command failed with exit code 1.
Trying to use this library with webpack, the "module" entry point is used for better try shaking (good :D)
Unfortunately, it looks like your mjs output is a bit mangled. I think your .mjs entry point is ending up pointing to the cjs files, as they are both output to the same directory.
Maybe at some point this library only had 1 file?
index.mjs
Points to './FetchCache.js', which is in commonjs format
The text was updated successfully, but these errors were encountered: