-
Notifications
You must be signed in to change notification settings - Fork 2
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 loading with Node.js v22.12.0 #10
base: main
Are you sure you want to change the base?
Conversation
As this package defines `"type": "module"` the contents of `/preset.js` is assumed to be a ESM module, but it contains CJS code. Switching the file type seems to resolve this.
@valentinpalkovic would be awesome if we can get this fix released. we are running into the same issue in our project with node 22.12.0, thank you! |
Hi @osmestad Thank you for putting together this PR. I'll take a look. |
Hey @valentinpalkovic, thanks for looking into this! Unfortunately it seems to still fail with our setup, output with the canary release is:
|
My bad. I missed some places. Here is another canary release: |
Now I'm getting:
Not sure if it is not available yet? |
Hey!
As this package defines
"type": "module"
the contents of/preset.js
is assumed to be a ESM module, but it contains CJS code. Switching the file type seems to resolve this.Issue first reported here: nodejs/node#56127
This revert the commit: 7d3379b I'm not sure what the reasoning was for changing it back then? But with the latest Node release I think this is the way to go. Our build worked fine up to and including the previous Node version:
22.11.0
but is broken now.