esm bundle: the export name "__esModule" is reserved and cannot be used
See original GitHub issueWe’re having trouble importing chevrotain using esbuild v0.12.7:
We get the following error:
> node_modules/chevrotain/lib_esm/api_esm.mjs:28:13: error: The export name "__esModule" is reserved and cannot be used (it's needed as an export marker when converting ES module syntax to CommonJS)
28 │ export const __esModule = mod.__esModule;
╵ ~~~~~~~~~~
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
The export name "__esModule" is reserved and cannot be used
Recently, I've been attempting to bundle modules from jspm.io (via a ... The export name "__esModule" is reserved and cannot be used #1591....
Read more >16. Modules - Exploring JS
You can't use reserved words (such as default and new ) as variable names, but you can use them as names for exports...
Read more >JavaScript modules - MDN Web Docs
The first thing you do to get access to module features is export them. This is done using the export statement. You can...
Read more >Typescript ReferenceError: exports is not defined
I was hoping to use module along with older code and it seems like that is not possible. This at least allow me...
Read more >Using Node.js ES modules and top-level await in AWS Lambda
The ES module uses top-level await to retrieve the parameter. The CommonJS function awaits the parameter retrieval in the handler. Before ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a bunch!
9.0.2 is out on npmjs.com