Uncaught promise error in 1.1.0
See original GitHub issueHi,
Firstly, I want to thank you for your library, it adds a nice touch to our application. As I am a developer, it’s sometime nice when we know how our creation is used, so I’ve attached a partial screenshot to show to you our use case.
Secondly, I encouters a little issue since I’ve upgrade progressbar.js from 1.0.1 to 1.1.0. In my browser console, there is sometime one or multiple uncaught promise errors:
Uncaught (in promise) {offset: 289.0670000019968}
Promise.then (async)
animate @ progressbar.js:1183
animate @ progressbar.js:1406
It does’nt seem to affect the UI. Unfortunatly, I have not been able to find exactly why it occurs.
By by looking into the diffs from 1.0.1 to 1.1.0,
I have been able to find that the error may be caused since the upgrade of the shifty
dependency from the Pull Request #196 (commit).
By adding an empty catch function to R118-R121, the promise error is handled and it seem to not affect the UI. But, I’m not sure that it is the right way to fix this problem…
.catch(function(state) {})
I hope it helps you, thank you very much!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:13 (4 by maintainers)
Top GitHub Comments
Thanks for the fix. Here the command for installing from the commit:
npm install --save "git://github.com/Zellerich/progressbar.js.git#0978bd7a45c1e1fcc8cf9b0890caddb5362941f6
FYI, I have incorporated @wparad’s jeremyckahn/shifty#115 fix into the latest v.2.9.0 release.
Thank you @wparad!