Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

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

Closed
aarndt opened this issue Nov 29, 2016 · 3 comments

Comments

@aarndt
Copy link

aarndt commented Nov 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.

@SteveSandersonMS
Copy link
Member

Thanks for reporting this and the clear repro instructions!

We'll publish a fix very shortly. In the meantime (like, next few hours) if you need you can work around it using the instructions at #470.

Closing this as a duplicate of #470.

@SteveSandersonMS
Copy link
Member

The fix is live now. Please update to version 1.0.0-beta-0000021 (or just go back to specifying 1.0.0-* but make sure it fetches the latest).

If you still get any issues please let me know!

@prabhurangan
Copy link

Hi

I am facing the same issue, any work around???

Regards,
PRabhu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants