Promise polyfill error on 2.4.4.
See original GitHub issueJust 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:
- Created 6 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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.
Thanks for your patience guys, this should be fixed in the latest 2.5.0.