-
-
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]: Compiler error with jest.config.ts and NodeNext moduleResolution in tsconfig.json #14740
Comments
Reported for visibility (it's sometimes easier to find an issue rather than a pending PR), because I have created a PR with a fix already. |
I ran into the same issue using
I think this is the same issue: #13350 I have not tested your PR #14739 but it makes sense to be using node16 with commonjs and should fix the problem |
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 issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
1 similar comment
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
29.1.2
Steps to reproduce
moduleResolution: "NodeNext"
(with `module: "NodeNext")jest.config.ts
file inside the projectExpected behavior
Correctly parsed Jest config
Actual behavior
Additional context
The same error happens for
"moduleResolution": "Node16"
setting:and for
"moduleResolution": "Bundler"
Environment
System: OS: macOS 14.1 CPU: (10) arm64 Apple M1 Pro Binaries: Node: 18.18.2 - /opt/homebrew/opt/nvm/versions/node/v18.18.2/bin/node Yarn: 4.0.2 - /opt/homebrew/opt/nvm/versions/node/v18.18.2/bin/yarn npm: 9.8.1 - /opt/homebrew/opt/nvm/versions/node/v18.18.2/bin/npm bun: 1.0.7 - ~/.bun/bin/bun
The text was updated successfully, but these errors were encountered: