You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the 4.2.2 version of request-promise in an Angular 4 app. I've developed an in-house networking library for making API calls which is based off request-promise. I'm distributing my library as an internal node module which allows me to load it like:
but I get the following exception when I try to use it:
_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.)
This might be more of a feature request rather than a bug, but is there any way to have request-promise check for window.Promise before trying to load the Bluebird polyfill?
The text was updated successfully, but these errors were encountered:
Hi @seanoshea , bluebird within request-promise does not act as a polyfill. That means it leaves the global Promise untouched. Your error must have been caused by something else.
Btw, if you prefer to use a different promise implementation even for request-promise itself, you may look into request-promise-native and request-promise-any.
I'm trying to use the
4.2.2
version ofrequest-promise
in an Angular 4 app. I've developed an in-house networking library for making API calls which is based offrequest-promise
. I'm distributing my library as an internal node module which allows me to load it like:My
package.json
looks like:but I get the following exception when I try to use it:
This might be more of a feature request rather than a bug, but is there any way to have
request-promise
check forwindow.Promise
before trying to load theBluebird
polyfill?The text was updated successfully, but these errors were encountered: