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

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module #19

Closed
melounek opened this issue Apr 28, 2021 · 2 comments
Closed

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module #19

melounek opened this issue Apr 28, 2021 · 2 comments

Comments

@melounek
Copy link

I am running on Typescript and after updating to version 4.0.0 it started throwing this error: (3.0.0 works fine)

Screenshot 2021-04-28 at 14 32 42

@sindresorhus any idea what could be behind it?

@sindresorhus
Copy link
Owner

Please read the release notes.

@melounek
Copy link
Author

I read them, but I didn't find what's wrong. I can't even use require in TS so if you pointing on this I am importing the module as import { htmlUnescape } from "escape-goat";. My node version is 15.7.0 if you are pointing on that. So I don't think not reading the release notes is the issue there.

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