-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress forces an invalid moduleResolution value for Typescript 5.7.3; it is unable to start #30954
Comments
@stevematney Where are you seeing the error exactly? What were the steps you did after setting these versions? |
Hi @jennifer-shehane! I updated a project from cypress@13 to cypress@14, and updated from [email protected] to [email protected]. I think this has something to do with my |
@stevematney After upgrading the versions, you're running |
The errors display in both cases. They display on |
Just one more note: I found that running |
Hi @stevematney. I am trying to reproduce this issue in https://github.com/AtofStryker/cypress-issue-30954 but am unable to reproduce. I have tried clearing the cache as well and using the tsconfig values you have provided in the issue. Would you be able to guide me in reproducing the issue in that github repository or helping me fill in the blanks? |
@AtofStryker I can try to take a look at your reproduction repo soon! I'm not actually sure the precise config that is needed to get it to happen, but it is currently reproducible every time in this repo on the main branch: |
Current behavior
Because of the forced
moduleResolution
value in #28709, Typescript 5.7.3 fails saying that "node" is not a valid "moduleResolution" value. (It was deprecated:moduleResolution
docs).The specific text of the failure is:
Note: this seems to only happen when a project is freshly updated to cypress@14 and [email protected]. It seems to be, if Cypress has been run successfully on a previous TS version, it continues working. (This may not be precisely correct, as the exact conditions of the failure have been difficult to pin down.)
Desired behavior
Cypress should default to a current, valid
moduleResolution
valueTest code to reproduce
This should be reproducible by simply updating any Cypress project using typescript to using [email protected]
Cypress Version
14.0.0
Node version
v22.13.0
Operating System
macOS 15.2
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: