Zone.assertZonePatched is not a function

后端 未结 3 1196
旧巷少年郎
旧巷少年郎 2021-01-17 09:15

I am getting the error message:

Unhandled Promise rejection: Zone.assertZonePatched is not a function

Although I am importing zonejs correctly in index.html:

相关标签:
3条回答
  • 2021-01-17 09:31

    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.

    0 讨论(0)
  • 2021-01-17 09:42

    Update package.json file

    "zone.js": "0.6.25"

    inside dependencies

    0 讨论(0)
  • 2021-01-17 09:48
    • 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>
    
    0 讨论(0)
提交回复
热议问题