question

MeetBhatt-9179 avatar image
0 Votes"
MeetBhatt-9179 asked ·

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

Hello Everyone,

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,
74056-ss.png

Please let me know if anyone have idea for the same.

Thanks % Regards,
Meet Bhatt


office-sharepoint-online
ss.png (38.8 KiB)
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MeetBhatt-9179 ,

Is there any update ? Did the suggestion in the answer help to resolve the error message in the question ?

Thanks
Best Regards

0 Votes 0 ·

Hi @MeetBhatt-9179 ,

If the answer resolve the error in the question, you could accept as answer so that it could also help others in the forum.

Thanks
Best Regards

0 Votes 0 ·

1 Answer

Jerryzy-MSFT avatar image
0 Votes"
Jerryzy-MSFT answered ·

Hi @MeetBhatt-9179 ,

Try to add window.Zone = undefined; to overcome the "Zone already loaded" error, the same question here for your reference:

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

Thanks
Best Regards


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.