Angular requires Zone.js prolyfill.
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Related StackOverflow Question
ERROR in ./src/polyfills.ts Module not found: Error: Can’t resolve ‘zone.js/dist/zone’
@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.