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.

Uncaught TypeError: n.find is not a function in cypress

See original GitHub issue

Hi @brian-mann . please help i’m getting this issue Screenshot 2019-05-20 at 10 03 14 AM

This error originated from your application code, not from Cypress.

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

This behavior is configurable, and you can choose to turn this off by listening to the 'uncaught:exception' event.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, May 5, 2020

@RobDBob Yes, you can add this to your code - debugger should hit within the uncaught exception.

Cypress.on('uncaught:exception', (err, runnable) => {
	debugger
})
0reactions
kamala1983commented, Apr 7, 2020

I am getting following exception…

An uncaught error was detected outside of a test Uncaught TypeError: fs.readFile is not a function

This error originated from your test code, not from Cypress.

Kindly help me on this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find().should is not a function in Cypress - Stack Overflow
The error message doesn't match the code. You can do this cy.get('somelist') .each(($el, index) =>{ if(condition1) const text ...
Read more >
JavaScript: Uncaught TypeError: n is not a function
This error occurs if you try to execute a function that is not initialized or is not initialized correctly. This means that the...
Read more >
Error Messages | Cypress Documentation
This message means that Cypress was unable to find tests in the specified file. You'll likely get this message if you have an...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
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