-
Notifications
You must be signed in to change notification settings - Fork 229
Requested module does not provide export named 'default' in vite #261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is not an |
@lpinca Thank you, now I know how to solve this problem, but I feel that the path of exports should be replaced by the files in dist |
No, those are for Node.js and for environments that read |
I'm closing this as answered. |
We need the built ESM module for the browser for bundlers like vite. This addresses errors like issue primus#261: > index.mjs?v=73fd6c6e:1 Uncaught SyntaxError: The requested module '/node_modules/eventemitter3/index.js?v=73fd6c6e' does not provide an export named 'default' (at index.mjs?v=73fd6c6e:1:8)
in vite development server , when node_modules contains uncompiled source code,got error
index.mjs?v=73fd6c6e:1 Uncaught SyntaxError: The requested module '/node_modules/eventemitter3/index.js?v=73fd6c6e' does not provide an export named 'default' (at index.mjs?v=73fd6c6e:1:8)
The text was updated successfully, but these errors were encountered: