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]: require() of ES Module >=7.3.0 #360

Closed
castroCrea opened this issue Jul 23, 2023 · 2 comments
Closed

Error [ERR_REQUIRE_ESM]: require() of ES Module >=7.3.0 #360

castroCrea opened this issue Jul 23, 2023 · 2 comments

Comments

@castroCrea
Copy link

When I update from 7.2.6 to >=7.3.0 I got this error Error [ERR_REQUIRE_ESM]: require() of ES Module
I use it in electronjs so node.
I found that you remove commonJS but all your node examples use commonJS

What is the solution here ?

ndaidong added a commit that referenced this issue Jul 23, 2023
- Build CJS version and export it for the outdated platforms

Related issues: #359, #360
@ndaidong
Copy link
Collaborator

@castroCrea it seems your platform still needs CJS support, similar to the issue #359 and extractus/oembed-extractor#177

Please try the version v7.3.1 I've just released.

@castroCrea
Copy link
Author

Thank it works perfectly 🦾
I'll add to my Roadmap to pass to ESM

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