Zone.assertZonePatched is not a function

痴心易碎 提交于 2019-12-01 15:02:11
  • RC7

Update zone.js pakage by zone.js@0.6.21

<script src="https://unpkg.com/zone.js@0.6.21/dist/zone.js"></script>

  • Angular2.0 release

Update zone.js package by zone.js@0.6.23,

<script src="https://unpkg.com/zone.js@0.6.23?main=browser"></script>

Update package.json file

"zone.js": "0.6.25"

inside dependencies

Also, after updating to 0.6.23, I received the following error:

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.)

After loading my core-js/client/shim.min.js BEFORE zone.js, my app was working again.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!