SharePointOnline/Angular-错误:未捕获的错误:区域已加载
我已经在 Angular 中创建了项目并使用内容编辑器添加到 SharePoint 页面中。
直到昨天它都可以正常工作。但它在加载页面时抛出以下错误。
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
请查看以下屏幕截图以了解更多详细信息,
回答
要解决此问题,请在“Index.html”中添加以下脚本-
window.Zone = 未定义
THE END
二维码