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.

Promise polyfill error on 2.4.4.

See original GitHub issue

Just upgraded to 2.4.4 on an Angular 4 project, which uses zone.js and am now seeing:

simplebar.js:12 Unhandled promise rejection Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)

I think the library shouldn’t be poly-filling Promise?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jindercommented, Oct 5, 2017

@mnlfischer Awesome.

I still think simplebar shouldn’t be patching this in the first place. Bloats the script size and it’s something that can be easily polyfilled by the consumers of the library.

0reactions
Grsmtocommented, Nov 1, 2017

Thanks for your patience guys, this should be fixed in the latest 2.5.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'promise-polyfill' #1001
Short description of the problem: I'm seeing a weird behavior. When I run ionic serve my app builds and runs as expected. No...
Read more >
promise-polyfill - npm
promise-polyfill will warn you about possibly unhandled rejections. It will show a console warning if a Promise is rejected, but no .catch is ......
Read more >
Es6-promise NPM - npm.io
This is a polyfill of the ES6 Promise. The implementation is a subset of rsvp.js extracted by @jakearchibald, if you're wanting extra features...
Read more >
es6-promise | Yarn - Package Manager
This is a polyfill of the ES6 Promise. The implementation is a subset of rsvp.js extracted by @jakearchibald, if you're wanting extra features...
Read more >
Promise.catch fails in IE11 with polyfills - Stack Overflow
If I remove the catch, the page loads without errors, but then it obviously isn't running my error handling code. Why isn't this...
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