I am receiving 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 I have defined the zone.js fine in the index.html file:
<!DOCTYPE html> <html> <head> <title>Drew's Demo Site</title> <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> <!-- Polyfill(s) for older browsers --> </head> <body> <my-app>Loading... </my-app> </body> </html> I am 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 am wondering if there is a deeper issue.
Any advice would be appreciated.
GitHib Link: NOTE if you do pull the project add a directory assets to src/assets
1 Answers
Answers 1
Have created a pull request to your github with a fix. It might not be a correct fix but a working fix :)
https://github.com/drewjocham/AngularIssue/pull/1
The change I did basically was to move the zone.js import to angular-cli.json file.
0 comments:
Post a Comment