Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(core): fix #405, refine the error message when zone.js already loaded#728

Merged
mhevery merged 1 commit into
angular:masterfrom
JiaLiPassion:duplicate
Apr 10, 2017
Merged

fix(core): fix #405, refine the error message when zone.js already loaded#728
mhevery merged 1 commit into
angular:masterfrom
JiaLiPassion:duplicate

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

fix #405.

We often see that 'Zone.js already loaded' error, when we wrongly load zone.js twice, or load zone.js in some polyfill by incidentally.

In this PR, we will try to throw the error message as

Zone already loaded. The loaded Zone.js script file seems to be path/to/zone.js(or some vender.bundle.js...)

So it will be easy to find out what is wrong, but it require the both zone.js to be upgrade to newer version (maybe 0.8.6)

@mhevery mhevery merged commit f3a3af3 into angular:master Apr 10, 2017
mhevery added a commit that referenced this pull request Apr 10, 2017
@mhevery
Copy link
Copy Markdown
Contributor

mhevery commented Apr 10, 2017

@JiaLiPassion Sorry I had to revert this one as it broke the build. Can you reopen this as a new PR?

@JiaLiPassion
Copy link
Copy Markdown
Collaborator Author

@mhevery,got it,I will make a new PR!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught Error: Zone already loaded

3 participants