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

Meet Bhatt 21 Reputation points

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,

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

Thanks % Regards,
Meet Bhatt

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,267 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jerryzy 10,566 Reputation points

    Hi @Meet Bhatt ,

    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

    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.

    0 comments No comments