Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zone.assertZonePatched is not a function

Tags:

angular

zonejs

I am getting the error message:

Unhandled Promise rejection: Zone.assertZonePatched is not a function

Although I am importing zonejs correctly in index.html:

  <script src="https://unpkg.com/[email protected]/dist/zone.js"></script>

Here is the code:

Plnkr: http://plnkr.co/edit/zZYOcgxcRINx23JhuxOk?p=preview

What is wrong here?

like image 900
Gambo Avatar asked Sep 13 '16 16:09

Gambo


Video Answer


2 Answers

  • RC7

Update zone.js pakage by [email protected]

<script src="https://unpkg.com/[email protected]/dist/zone.js"></script>

  • Angular2.0 release

Update zone.js package by [email protected],

<script src="https://unpkg.com/[email protected]?main=browser"></script>
like image 110
Nikhil Shah Avatar answered Sep 18 '22 11:09

Nikhil Shah


Update package.json file

"zone.js": "0.6.25"

inside dependencies

like image 35
Engineer Avatar answered Sep 20 '22 11:09

Engineer