0
我构建了一个小型的angular2应用程序。我直接在自定义SharePoint 2013主页面上引用appcomponent。它正确加载,但当我打开共享点的设置菜单 我在zone.js部分中出现了“超出堆栈空间”错误。在SharePoint 2013 MasterPage上使用Angular2导致Zone.JS错误
Zone.prototype.runTask = function (task, applyThis, applyArgs) {
task.runCount++;
if (task.zone != this)
throw new Error('A task can only be run in the zone which created it! (Creation: ' + task.zone.name +
'; Execution: ' + this.name + ')');
var previousTask = _currentTask;
_currentTask = task;
var oldZone = _currentZone;
_currentZone = this;
try {
if (task.type == 'macroTask' && task.data && !task.data.isPeriodic) {
task.cancelFn = null;
}
try {
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
_currentZone = oldZone;
_currentTask = previousTask;
}
};
在catch块中,错误被捕获。在那个错误之后,第二个直接发生:“在严格模式下不允许访问函数或参数对象的'调用者'属性”。
以下屏幕截图显示了Firefox控制台中的错误。它通过在元素设置菜单中悬停一个元素每次都发生:
任何建议都将是greate。 感谢您的帮助,问候 安东