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

[ERR_REQUIRE_ESM]: require() of ES Module #340

Closed
LucileGrnd opened this issue Mar 15, 2024 · 2 comments
Closed

[ERR_REQUIRE_ESM]: require() of ES Module #340

LucileGrnd opened this issue Mar 15, 2024 · 2 comments

Comments

@LucileGrnd
Copy link

Hello I have this issue when I upgrade open to the latest version that I didnt have before:

  • I am using an electron app

[ERR_REQUIRE_ESM]: require() of ES Module [...path]\node_modules\open\index.js from [component]\internal-window.js not supported

Any idea?

Thank you

@LucileGrnd
Copy link
Author

Warning: This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM or use the dynamic import() function. Please don't open issues for questions regarding CommonJS / ESM.

@nfgaetest
Copy link

nfgaetest commented Mar 18, 2024

I also faced this issue.
Downgrading to 8.4.2 could simply resolved it.

  "dependencies": {
       :
    "open": "^8.4.2",
       :
  }

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