Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint Online /Angular - Error: Uncaught Error: Zone already loaded

I have created project in Angular and added in SharePoint page using Content Editor.

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,enter image description here

like image 239
Raj Gohel Avatar asked Dec 30 '22 16:12

Raj Gohel


1 Answers

To resolve this kindly add below script on your "Index.html"-

window.Zone = undefined

like image 182
Swapnil Phatale Avatar answered Feb 14 '23 17:02

Swapnil Phatale