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.

Error on undefined setTimeout

See original GitHub issue

Introduced by commit 18d6dbf9217bb58d741f23e2b8b11b446986df62

Running in a .NET hosted React environment it appears that setTimeout isn’t available, which causes a runtime error. I had to downgrade to 3.2.1 to make things work again.

I can’t currently commit to building a minimal example, sorry.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sjmuldercommented, Apr 26, 2017

Sorry for not getting back earlier. I don’t dare say but will do some testing.

0reactions
Samywamy10commented, Feb 28, 2018

Did we ever come up with a solution for this? Encountering this problem now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Cannot read property of undefined" when wrapped in a ...
In the setTimeout your this is not the main this . So your code doesn't work. To work in the setTimeout, you need...
Read more >
The 10 Most Common JavaScript Issues Developers Face
Uncaught TypeError: undefined is not a function. Why? It's all about context. The reason you get the above error is because, when you...
Read more >
Why this function with setTimeout is returning the output as ...
LynTon it seems that Es7 and latest JS's syntaxes are not working in SoloLearn playground. Thus your code is not working. Pops up...
Read more >
setTimeout() - Web APIs | MDN
The global setTimeout() method sets a timer which executes a function or specified piece of code once the timer expires.
Read more >
Scheduling: setTimeout and setInterval
In our case the result of sayHi() is undefined (the function returns nothing), so nothing is scheduled. Canceling with clearTimeout. A call to ......
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