TypeError: Cannot read properties of undefined (reading 'split') cypress_runner.js 198481
See original GitHub issueCurrent behavior
I have a test failing in CI that I want to run locally to debug.
I cannot get cypress to run locally—which I’ve always been able to do until recently.
I’ve deleted caches at /user/Library/Caches/Cypress/*
, reinstalled countless times, tried on two different machines. I’ve also gotten my coworkers to run locally and they don’t have issues.
Whenever a test is run I get this error. It occurs regardless of the test. I verified this using the getting started test from the docs:
describe('My First Test', () => {
it('Does not do much!', () => {
expect(true).to.equal(true)
})
})
The top of the stack trace leads to this from cypress_runner
var splitStack = function splitStack(stack) {
var lines = stack.split('\n');
return _.reduce(lines, function (memo, line) {
if (memo.messageEnded || stackLineRegex.test(line)) {
memo.messageEnded = true;
memo[1].push(line);
} else {
memo[0].push(line);
}
return memo;
}, [[], []]);
};
It seems like others have had similar issues. I noticed that popper.js.map is 404ing in the terminal.
Desired behavior
Trying to get any test to run. It’s failing before I can.
Test code to reproduce
Using this test as a sanity check from the docs:
describe('My First Test', () => {
it('Does not do much!', () => {
expect(true).to.equal(true)
})
})
Use cypress open
and click it!
Cypress Version
4.7.0
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
@saylestyler - did your issue got resolved? If so, how? I am facing same issue
+1 Having the same issue, has anyone found the fix? thx