0

i build a small angular2 app. I am referencing the appcomponent directly on a custom sharepoint 2013 masterpage. Its loading correctly but when i am opening the settings menu of the sharepoint SharePoint Settingsmenue i got a "Out of stack space" error in the zone.js part.

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;
        }
    };

In the catch block the error is catched. After that error a second one occures directly: "Accessing the 'caller' property of a function or arguments object is not allowed in strict mode".

Following Screenshot shows the error in Firefox console. It occures everytime by hovering an element in the sharepoint settings menue: Zone.js Error in Firefox

Any suggestions will be greate. Thanks for your help, greetings Anton

4

1 に答える 1