Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create property '__creationTrace__' on string '__zone_symbol__optimizedZoneEventTask'

Tags:

angular

zonejs

This is a bad thursday. It is the 13th. And yesterday I explained to my collegues how lucky we were about the 13th falling on a thursday, not on a friday.

Well, that was yesterday, and today I woke up with angular's fist in my face:

Cannot create property 'creationTrace' on string '__zone_symbol__optimizedZoneEventTask'

Well it might also be zone.js, or maybe even something else deeper down that dark abyss called development stack. Can anybody help me?

Sorry for my attitude, it's just that working with angular since its early alpha-stages has finally taken its toll on me.

PS: Suffice it to say, I did not change anything since the working version yesterday. So I am completely lost as to why and how and where this bug came from...

like image 327
Tobias Gassmann Avatar asked Jul 13 '17 10:07

Tobias Gassmann


1 Answers

Okey, I managed to find a way-out. zone.js guys recently released a new version you can check it from here. https://github.com/angular/zone.js/releases I think the problem is with this release. In your package.json use zone.js like this

"zone.js": "0.8.12" 

If you're using the default Angular template in Plunker, you can set the zone.js version by inserting the versions into appropriate lines of the index.html file.

<script src="https://unpkg.com/[email protected]/dist/zone.js"></script> <script src="https://unpkg.com/[email protected]/dist/long-stack-trace-zone.js"></script> 
like image 52
Mertcan Diken Avatar answered Sep 28 '22 07:09

Mertcan Diken