Angular requires Zone.js prolyfill.

See original GitHub issue

I have getting an error saying:

GET http://localhost:4200/node_modules/zone.js/dist/zone.js 404 (Not Found) ng_zone.js:92Uncaught (in promise) Error: Angular requires Zone.js prolyfill. at new NgZone (ng_zone.js:92) at PlatformRef_._bootstrapModuleFactoryWithZone (application_ref.js:335) at application_ref.js:389 NgZone @ ng_zone.js:92 PlatformRef_._bootstrapModuleFactoryWithZone @ application_ref.js:335 (anonymous) @ application_ref.js:389

However I did define the zone.js fine in the index.html file as suggested in a bug reported:

`<!DOCTYPE html>

<html> <head> <title>Drew's Demo Site</title> <meta name="description" content=""> <meta name="author" content="">
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="src/styles.css">
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
</head> <body>
<my-app>Loading... </my-app>
</body> </html>`

I am sure sure what is going on. My IDE fills in the test as I type making me think the path is correct and I double check but it still gives a 404. I wondering if there is a deeper issue.

I post the project on GIT at https://github.com/drewjocham/AngularIssue.git

If you so pull it and it complains about an asset file just make a dir under src and it will go away and the error will show.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
muhammadumerfarooqcommented, Mar 21, 2018

ERROR in ./src/polyfills.ts Module not found: Error: Can’t resolve ‘zone.js/dist/zone’

6reactions
rtmcommented, Feb 5, 2018

@DzmitryShylovich Not everyone has a StackOverflow account, nor wants one. They have a very spotty governance model, extreme opacity in the way the site is administered, are severely unresponsive to user suggestions and requests, and are based on an exploitative business model. I don’t know quite what the right alternative is, and of course we don’t want noobie support requests cluttering up Github issues, but I would really like to avoid SO.

I speak from experience, having had a rep on SO of over 60K before I saw the light and pulled the plug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error: Angular requires Zone.js prolyfill" - Stack Overflow
Worked, when trying to create a custom web component using angular elements. – karx. Jan 3, 2019 at 20:15. Add a comment ...
Read more >
single-bundle results in "In this configuration Angular requires ...
Running ng build --prod --extraWebpackConfig webpack.extra.js results in. Uncaught Error: In this configuration Angular requires Zone.js.
Read more >
Angular2 Final Release – “Error: Angular requires Zone.js ...
I have upgraded from RC4 to the Final release of Angular2. When I run npm start , the app is stuck on 'Loading…'...
Read more >
Angular2 Final Release - "Error: Angular requires Zone.js ...
[Solved]-Angular2 Final Release - "Error: Angular requires Zone.js prolyfill"-angular.js ... This error can also occur when reverting a commit or changing a lot ......
Read more >
Error: Angular Requires Zone.Js Prolyfill - ADocLib
Angular2 Final Release Error: Angular requires Zone.js prolyfill HTML is a problem all you need is to manually import zone.js before bootstrapping.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found