简体   繁体   English

SharePoint 在线/Angular - 错误:未捕获的错误:区域已加载

[英]SharePoint Online /Angular - Error: Uncaught Error: Zone already loaded

I have created project in Angular and added in SharePoint page using Content Editor.我在 Angular 中创建了项目,并使用内容编辑器在 SharePoint 页面中添加了项目。

It was worked correctly till yesterday.直到昨天它都正常工作。 but it throwing below error while loading the page.但它在加载页面时抛出错误。

zone-evergreen.js:42 Uncaught Error: Zone already loaded.
    at zone-evergreen.js:42
    at Object.pDpN (zone-evergreen.js:635)
    at __webpack_require__ (bootstrap:79)
    at Module.hN/g (polyfills.ts:1)
    at __webpack_require__ (bootstrap:79)
    at Object.1 (polyfills.js?v=1.0:10)
    at __webpack_require__ (bootstrap:79)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)
    at polyfills.js?v=1.0:1

main.ts:12 TypeError: Zone.assertZonePatched is not a function
    at new NgZone (core.js:28352)
    at getNgZone (core.js:29222)
    at PlatformRef.bootstrapModuleFactory (core.js:29104)
    at core.js:29162

Kindly check below screenshot for more details,请查看下面的屏幕截图以获取更多详细信息, 在此处输入图像描述

To resolve this kindly add below script on your "Index.html"-要解决此问题,请在“Index.html”上添加以下脚本 -

window.Zone = undefined window.Zone = 未定义

We have exactly the same issue at the moment since today with our production customers!从今天开始,我们的生产客户现在遇到了完全相同的问题! We have added a script editor on top of the page with the same code我们在页面顶部添加了一个具有相同代码的脚本编辑器

window.Zone = undefined;

But what is the impact on the exisiting applications?但是对现有应用程序有什么影响?

Same here since today.从今天开始就在这里。 We think Microsoft pushed an update to O365 causing this issues.我们认为 Microsoft 向 O365 推送了更新,从而导致了此问题。

Indeed window.Zone = undefined solves this issue but we don't know yet if this impacts the rest of our applications... Still to investigate.确实 window.Zone = undefined 解决了这个问题,但我们还不知道这是否会影响我们应用程序的 rest ......仍有待调查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM