当前位置: 首页 > 工具软件 > Zone.js > 使用案例 >

angular2出现zone.js错误

萧韬
2023-12-01

错误:

Unhandled Promise rejection: 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.) ; Zone: <root> ; Task: Promise.then ; 


解决办法:

更新zone.js 到0.8.19 版本

npm install zone.js@^0.8.19 --save

 类似资料: