You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla.
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: