Requested module does not provide export named 'default' in vite
chua1989 opened this issue · comments
Cyrus.chen commented
Luigi Pinca commented
This is not an eventemitter3
issue. In the browser you need to use the module under the dist
folder (eventemitter3.esm.js
).
Cyrus.chen commented
@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
Luigi Pinca commented
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 package.json
.
Luigi Pinca commented
I'm closing this as answered.