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

code: 'ERR_REQUIRE_ESM' #19

Closed
nodejavascript opened this issue Feb 6, 2023 · 2 comments
Closed

code: 'ERR_REQUIRE_ESM' #19

nodejavascript opened this issue Feb 6, 2023 · 2 comments

Comments

@nodejavascript
Copy link

Hi, I just installed this package into my fresh nodejs app using

  • node/18.13.0
  • "esm": "^3.2.25"

Im getting the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/{my path}/api/node_modules/beeper/index.js not supported.
Instead change the require of index.js in null to a dynamic import() which is available in all CommonJS modules.
@sindresorhus
Copy link
Owner

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2023
@nodejavascript
Copy link
Author

thank you!

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