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 (in promise) timer

See original GitHub issue

Hi.

Since the change of the promises, I’ll get an error sweetalert2.min.js:1 Uncaught (in promise) timer when having an alert with a timer to close it.

See this example. A simple if() should do the trick… https://jsfiddle.net/o0b675zm/

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
simplenotezycommented, Jan 20, 2018

That does not work. Error still persists: Uncaught (in promise) timer when using .then(

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - Javascript - Uncaught (in promise) - Stack Overflow
The problem is that you should generally never call a function that returns a promise without doing something with that promise.
Read more >
(index):1 Uncaught (in promise) Timeout - WordPress.org
(index):1 Uncaught (in promise) Timeout​​ Using chrome dev tools after one minute after page has loaded, I am receiving the following error.
Read more >
Promise with timeout in Javascript | by Viking Jonsson
creates a timeout with setTimeout, which takes a callback that triggers a rejected promise after 4000ms.
Read more >
How to handle Uncaught (in promise) DOMException ... - Quora
This means that any other pending environment events will likely be processed before the setTimeout callback, even if a timeout duration of zero...
Read more >
How to add timeout to a Promise in Javascript
Promises in Javascript has no concept of time. When you use await or attach a function with .then() , it will wait until...
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