question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ES Module support

See original GitHub issue

@Hookyns check this out. Tried to run under type: "module" and got require is not defined.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
avin-kavishcommented, Aug 14, 2022

With ts-node. Not aware of any issues, i know it won’t accept .ts extension though. Even .ts files have to be imported with .js.

1reaction
Hookynscommented, Aug 13, 2022

Should be fixed in tst-reflect@0.8.0 and tst-reflect-transformer@0.10.1.

Also there was some trouble with typelib mode in nodenext module, cuz of code related to ts-node. Hope it’ll be okay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript modules via script tag | Can I use... Support tables ...
Loading JavaScript module scripts (aka ES6 modules) using <script type="module"> Includes support for the nomodule attribute. Usage % of. all users, all tracked ......
Read more >
JavaScript modules - MDN Web Docs
Use of native JavaScript modules is dependent on the import and export statements; these are supported in browsers as shown in the compatibility ......
Read more >
ECMAScript modules | Node.js v19.3.0 Documentation
Node.js fully supports ECMAScript modules as they are currently specified and provides ... Dynamic import() is supported in both CommonJS and ES modules....
Read more >
Using ES Modules in the Browser Today - SitePoint
The Current ES Modules Landscape. Safari, Chrome, Firefox and Edge all support the ES6 Modules import syntax. Here's what they look like.
Read more >
ES modules in service workers - web.dev
js. While all modern browsers offer some ES module support, they don't all offer support everywhere that code can be run. Specifically, support ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found