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.

esModuleInterop error when using Typescript

See original GitHub issue

This is the exception I am facing when using typescript:

This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.ts(2497)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
bjoveskicommented, Jun 1, 2020

Hey folks,

Thank you for developing Resumable, it’s very well designed & documented and a pleasure to use.

Would you mind pushing the latest version (1.1.2) to the npm registry?

Thank you, Bojan

0reactions
asmanp2012commented, Oct 18, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

esModuleInterop: true cause runtime error #41898 - GitHub
I noticed that with esModuleInterop enabled, compilation fails when you attempt to default import from another TypeScript file that has no ...
Read more >
TSConfig Option: esModuleInterop - TypeScript
This mis-match causes these two issues: the ES6 modules spec states that a namespace import ( import * as x ) can only...
Read more >
Module can only be default-imported using esModuleInterop flag
The error "Module can only be default-imported using esModuleInterop flag" occurs when we try to import a CommonJS module into an ES6 module....
Read more >
Module '"electron"' can only be default-imported using the ...
... can only be default-imported using the 'esModuleInterop' flag ... import electron from "electron"; // this line invokes the error const ...
Read more >
TypeScript intellisense in VS2019 falsely showing error "... can ...
In Visual Studio 2019, Intellisense is falsely filling the error list with "…can only be default-imported using the 'esModuleInterop' flag when importing ...
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