question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read properties of undefined (reading 'undefined') in historyNavigationTriggeredHashChange

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
emilyrohrboughcommented, Apr 6, 2022
0reactions
cypress-bot[bot]commented, Apr 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found