Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'esModuleInterop' flag and referencing its default export.ts #187

Open
productdevbook opened this issue Jun 10, 2022 · 3 comments
Open

'esModuleInterop' flag and referencing its default export.ts #187

productdevbook opened this issue Jun 10, 2022 · 3 comments

Comments

@productdevbook
Copy link

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

image

@leerob
Copy link
Member

leerob commented Jul 11, 2022

Which version are you using? Could you try using the latest canary version which has ES Modules support?

@productdevbook
Copy link
Author

Which version are you using? Could you try using the latest canary version which has ES Modules support?

"ms": "3.0.0-canary.1",

@leerob
Copy link
Member

leerob commented Jul 11, 2022

Ah, I think I see the issue. Your types are coming from @types/ms, but with the 3.0 release, types are included with the ms package directly. You can remove @types/ms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants