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 with Node 18.2 #74
Comments
The same in Node 16 and 14 |
This happened after the release of the new RC version of cheerio with ESM modules support. |
A possible workaround: Manually downgrade cheerio to 1.0.0-rc.10 works. I used yarn and the following package.json
|
We solved it using Our package.json {
"name": "adl",
"version": "1.0.0",
"dependencies": {
"log4brains": "latest",
"cheerio": "1.0.0-rc.10"
}
} |
Hi! Fixed in v1.0.0-beta.12 by pinning a fixed version of cheerio directly in the project, as suggested in your workaround ; thank you for this! Also, to avoid similar incidents in the future, I created this proposal: #77 |
Bug Report
Description
Log4brains init does'nt work and produce following error with node 18.2 clean install.
Steps to Reproduce
Expected Behavior
Log4brains should work as expecte...
Context
Simply trying to init log4brains
Environment
The text was updated successfully, but these errors were encountered: