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 message: "Must use import to load ES Module" #349

Closed
cesarpachon opened this issue Nov 15, 2022 · 0 comments
Closed

error message: "Must use import to load ES Module" #349

cesarpachon opened this issue Nov 15, 2022 · 0 comments

Comments

@cesarpachon
Copy link

cesarpachon commented Nov 15, 2022

hello, adding this library to my project that uses mjs modules (node 14) I got the mentioned error message, code: 'ERR_REQUIRE_ESM'
what is the recommended way to use this library in a ESM environment?
UPDATE: I figured out that it works from the main project, the error happens only when trying to run a jest test, so it is more a issue with jest than with this library..

@cesarpachon cesarpachon closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2022
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

1 participant