Fails due to Uncaught TypeError: Cannot read property 'native' of undefined
See original GitHub issueI haven’t made any changes to my projects except running yarn install, but now I can’t run any tests using Cucumber, while normal Cypress tests run fine.
I tested creating the Google example files and get the same error.
An uncaught error was detected outside of a test: Uncaught TypeError: Cannot read property ‘native’ of undefined.
Here’s the full error log; ` Running: Google.feature (1 of 1)
- An uncaught error was detected outside of a test
0 passing (193ms) 1 failing
- An uncaught error was detected outside of a test: Uncaught TypeError: Cannot read property ‘native’ of undefined
This error originated from your test code, not from Cypress.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure. at Object.<anonymous> (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:59549:35) at Object.361…/caller.js (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:59835:4) at o (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:265) at http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:316 at Object.360…/lib/async (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:59533:13) at o (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:265) at http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:316 at Object.<anonymous> (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:16149:16) at Object.178.bluebird (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:16155:4) at o (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:265) at http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:316 at Object.177…/formatter/builder (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:15896:26) at o (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:265) at http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:316 at Object.206…/cli (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:18507:12) at o (http://localhost:35739/__cypress/tests?p=cypress/integration/Google.feature-026:1:265) `
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:22

Top Related StackOverflow Question
Looks like the issue happens since this change in browserify resolve
https://github.com/browserify/resolve/commit/535ec22acf6d5cc4fa3665ab6dbb6755519e6deb#diff-688ede0ee2da1fa3d89f2fc485f39273R8
fs.realpath is undefined
I’m digging into how to pinpoint that version to an older versoin for us or if there is something else we can do
🎉 This issue has been resolved in version 2.3.1 🎉
The release is available on:
Your semantic-release bot 📦🚀