Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten #1223

Closed
opened 2025-08-09 17:19:19 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @aarndt on 11/29/2016

I have an existing project that was working up until last week. I now get this error:

Exception: Call to Node module failed with error: Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.) at Function.Zone.assertZonePatched

To make sure that the issue was not due to a code/package change on my end, I took the following steps to reproduce the issue

  1. Create a new project using the .NET Core/Angular2 template
  2. dotnet restore
  3. npm install
  4. dotnet run
  5. Error is shown

This has us completely blocked. Any help would be appreciated.

*Originally created by @aarndt on 11/29/2016* I have an existing project that was working up until last week. I now get this error: ```Exception: Call to Node module failed with error: Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.) at Function.Zone.assertZonePatched``` To make sure that the issue was not due to a code/package change on my end, I took the following steps to reproduce the issue 1. Create a new project using the .NET Core/Angular2 template 2. dotnet restore 3. npm install 4. dotnet run 5. Error is shown This has us completely blocked. Any help would be appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1223
No description provided.