-
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 Array(...).keys(...).slice is not a function after upgrade from 3.8.3 to 4.4.1 #7098
Comments
I'm not able to reproduce this solely from the snippet provided. I am able to reproduce this from the repository provided, so this means it is something related to the environment setup. I suspect that it has something to do with the TypeScript configuration, since this begins failing in 4.4.0, which introduced out of the box TypeScript support in #5906 Indeed, I've confirmed that the test code above does not work when there is a To Reproduce
let x = [...Array(100).keys()].map(x => x + "");
{
"name": "cypress-test",
"scripts": {},
"devDependencies": {
"cypress": "4.4.1",
"typescript": "3.8.3"
}
} 4.3.04.4.04.4.1TypeScript version 3.5.3TypeScript version 3.8.3 (current)WorkaroundDowngrade to Cypress 4.3.0 for now. |
It happened because I didn't set up |
The code for this is done in cypress-io/cypress#7129, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
I am using Cypress on an Angular application.
The following test is working on version 3.8.3
but throws an error on 4.4.1
Test code to reproduce
Repository demonstrating the problem: https://github.com/Kimserey/cypress-test-issue
master
is 3.8.3upgrade-4
is 4.4.1ng serve
,npx cypress open
,Versions
Cypress 4.4.1
The text was updated successfully, but these errors were encountered: