-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: Jest crashes on Node.js v23 when using jest.config.js contains TLA #15363
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This happens on Node v22.12 now, since they enabled requiring ESM by default. The problem lies within
|
This broke our builds in early AM (on latest LTS, v22.12.0). Is there a fix for this? Edit: downgrading to v22.11.0 fixed this issue. |
Version
30.0.0-alpha.6
Steps to reproduce
The
jest.config.js
file in Prettier repo imports a module that contains TLA (comes fromtemp-dir
), when using Node.js v23 Jest crashes. prettier/prettier#16761Expected behavior
Run tests without error.
Actual behavior
Additional context
I tried to comment out our install-prettier.js
Jest runs without error.
If I add
The error comes back.
Environment
The text was updated successfully, but these errors were encountered: