本文介绍了无法在字符串"__zone_symbol__optimizedZoneEventTask"上创建属性"__creationTrace__"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个糟糕的星期四.这是十三日.昨天,我向同事们解释了我们很幸运地看到第13个星期四跌倒,而不是在星期五.

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:

也可能是zone.js,或者甚至是在那个深渊中更深的东西,称为开发栈.有人可以帮我吗?

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

对不起,我的态度是自从早期的alpha阶段最终对我造成伤害之后,就开始使用angular了.

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

PS:可以说,自昨天的工作版本以来,我没有进行任何更改.因此,我完全不知道该错误的原因,来源以及原因.

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

推荐答案

Okey,我设法找到了出路. zone.js伙计们最近发布了一个新版本,您可以从这里检查它. https://github.com/angular/zone.js/releases 我认为问题出在此版本中.在您的package.json中,像这样使用zone.js

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/releasesI think the problem is with this release.In your package.json use zone.js like this

"zone.js": "0.8.12"

如果您在Plunker中使用默认的Angular模板,则可以通过将zone.js版本插入到index.html文件的相应行中来设置zone.js版本.

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>

这篇关于无法在字符串"__zone_symbol__optimizedZoneEventTask"上创建属性"__creationTrace__"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 10:05