小さなangle2アプリケーションを作成します。私はカスタムsharepoint 2013のマスターページで直接appcomponentを参照しています。正しくロードされているが、共有ポイントの設定メニューを開いているとき zone.jsの部分に「スタックスペース不足」というエラーがあります。SharePoint 2013でAngular2を使用すると、MasterPageが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ブロックでエラーがキャッチされます。このエラーが発生した後、2番目のエラーが直接発生します。「strictモードでは、関数またはargumentsオブジェクトの 'caller'プロパティへのアクセスは許可されていません。
次のスクリーンショットは、Firefoxコンソールのエラーを示しています。これは、共有設定のmenueで要素をホバリングすることによって毎回発生します。
任意の提案はgreateです。 あなたの助けのおかげで、挨拶 アントン