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

fix: Fix require(ESM) for Node v22 #722

Closed
wants to merge 1 commit into from
Closed

Conversation

@sindresorhus
Copy link
Owner

This is not correct.

@mdorda
Copy link
Author

mdorda commented Jan 16, 2025

So what is the correct solution to make it work in Node 22? I tried to explain my reasons here: #696 (comment)

I will be happy to fix it, but I do not know what you consider to be correct.

@caldrjir
Copy link

@sindresorhus May I ask what the correct solution is?
I am facing the same problem and this seems to be ok for me

@mdorda
Copy link
Author

mdorda commented Jan 16, 2025

Maybe to use require? It works in Node 22 as well: #723

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

Successfully merging this pull request may close these issues.

3 participants