Cannot read properties of undefined (reading 'undefined') in historyNavigationTriggeredHashChange
See original GitHub issueCurrent behavior
We have a Cypress test which tests UI navigation by clicking links, then using the browser’s back button to pop the history stack. When running this test in Cypress 9.5.0, we get a stack trace from Cypress code:
Uncaught TypeError: Cannot read properties of undefined (reading 'undefined')
at historyNavigationTriggeredHashChange (cypress_runner.js:166581:101)
at HTMLIFrameElement.<anonymous> (cypress_runner.js:173017:111)
at HTMLIFrameElement.dispatch (cypress_runner.js:113217:27)
at HTMLIFrameElement.elemData.handle (cypress_runner.js:113025:28)
Desired behavior
No stack trace.
Test code to reproduce
N/A
Cypress Version
9.5.0
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Cypress TypeError: Cannot read properties of undefined ...
TypeError : Cannot read properties of undefined (reading 'uid'). Some times it works when I change to a different workspace but again this ......
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Cannot read properties of undefined (reading'value')
Cannot read properties of undefined (reading'value') ... The problem is in the FileName property, if you use a local variable to get the...
Read more >Uncaught TypeError : Cannot read properties of undefined
Looking for ways to handle Uncaught TypeError: Cannot read property of undefined in JavaScript? This guide will help you to catch errors.
Read more >How to Prevent the Error: Cannot Read Property '0' of Undefined
This means that in modern Chrome, Chromium-based browsers, and Node.js, you should see TypeError: Cannot read properties of undefined (reading ' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mr-short / @tstark2 / @pnjihia / @kaiyoma / @DiegoMcDipster
This issue appears to be a duplicate of https://github.com/cypress-io/cypress/issues/19749.
Released in
9.5.4
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v9.5.4, please open a new issue.