-
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
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array #27466
Comments
hey, I'd like to work on this issue |
Hi, may I ask what's the status of this issue? |
@NextThread are you working on this? |
There's an issue on Another option is to switch to I was hoping that the fix for #28385 would have fixed this problem too |
I fixed it by doing this at the CI level before running tests:
We are patching the Cypress cache bin's ts-node using the application's main ts-node (11.0.0-beta.1). This is not optimal at all for obvious reasons, so I'm wondering if there is a plan to update the ts-node version of the Cypress to @jennifer-shehane I see you have marked this issue so I would appreciate your guidance on how to approach this problem 😊 |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Current behavior
When you use
yarn cypress:run
which iscypress run
command withtypescript@5
and if you defined yourtsconfig.json
file with multipleextends
(which means it is an array), you are getting this error.With Typescript@5, you can set
extends
value to be array now. With the latest version of Cypress, this code in line 94 causing an issue:var extendedConfigPath = path.join(currentDir, extendedConfig);
where
extendedConfig
is an array. The file istsconfig-loader.js
.Desired behavior
Cypress should support an array for extended configuration of Typescript since Typescript supports it now.
Test code to reproduce
Basic
tsconfig.json
such as:and latest version of Cypress (currently 12.17.3)
Cypress Version
12.17.3
Node version
v18.16.0
Operating System
macOS 13.5
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: