ECMAScript module support?
See original GitHub issueDoes this support the new-style ES modules? (ie. "type": "module"
in package.json
etc.)
I have a Node.js TypeScript project that compiles to native ES modules (recently migrated, due to depending on some other libraries that are now only shipped as ES modules), and I can’t seem to be able to import
any of the project’s modules in a notebook (inside that project), whichever way I try.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ECMAScript modules | Node.js v19.3.0 Documentation
js fully supports ECMAScript modules as they are currently specified and provides interoperability between them and its original module format, CommonJS.
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >ECMAScript Modules - webpack
ECMAScript Modules (ESM) is a specification for using Modules in the Web. It's supported by all modern browsers and the recommended way of...
Read more >Understanding TypeScript 4.7 and ECMAScript module support
Part of ECMAScript module support is the ability to specify the module type of a file based on the file suffix. If you...
Read more >ECMAScript Modules - Jest
Jest ships with experimental support for ECMAScript Modules (ESM). The implementation may have bugs and lack features. For the latest status ...
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
Not yet, but will be supporting that soon. Thanks for trying this extension and submitting the feature request (plan is to get it in some time next week).
@ilyabo Ah, I guess the notebook extension’s transpiler is also changing
import()
function calls intorequire()
internally…In this case you are currently probably out of luck, and this issue is indeed a blocker for importing any ES modules.