app.module 404 (Not Found)
See original GitHub issueHi,
I just run npm install and npm start. However, after that it shows the 404 Not found error. Together with these errors below.
Error: (SystemJS) XHR error (404 Not Found) loading http://dalex.me/src/app/app.module Error: XHR error (404 Not Found) loading http://dalex.me/src/app/app.module at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://dalex.me/node_modules/zone.js/dist/zone.js:1190:29) [<root>] at Zone.runTask (http://dalex.me/node_modules/zone.js/dist/zone.js:166:47) [<root> => <root>] at XMLHttpRequest.ZoneTask.invoke (http://dalex.me/node_modules/zone.js/dist/zone.js:416:38) [<root>] Error loading http://dalex.me/src/app/app.module as "./app/app.module" from http://dalex.me/src/main.js at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://dalex.me/node_modules/zone.js/dist/zone.js:1190:29) [<root>] at Zone.runTask (http://dalex.me/node_modules/zone.js/dist/zone.js:166:47) [<root> => <root>] at XMLHttpRequest.ZoneTask.invoke (http://dalex.me/node_modules/zone.js/dist/zone.js:416:38) [<root>] Error loading http://dalex.me/src/app/app.module as "./app/app.module" from http://dalex.me/src/main.js at addToError (http://dalex.me/node_modules/systemjs/dist/system.src.js:122:78) [<root>] at linkSetFailed (http://dalex.me/node_modules/systemjs/dist/system.src.js:695:21) [<root>] at http://dalex.me/node_modules/systemjs/dist/system.src.js:495:9 [<root>] at Zone.run (http://dalex.me/node_modules/zone.js/dist/zone.js:126:43) [<root> => <root>] at http://dalex.me/node_modules/zone.js/dist/zone.js:679:57 [<root>] at Zone.runTask (http://dalex.me/node_modules/zone.js/dist/zone.js:166:47) [<root> => <root>] at drainMicroTaskQueue (http://dalex.me/node_modules/zone.js/dist/zone.js:529:35) [<root>] at XMLHttpRequest.ZoneTask.invoke (http://dalex.me/node_modules/zone.js/dist/zone.js:420:25) [<root>]
Could you please take a look at this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:9
Top GitHub Comments
Please check and modify below lines in systemjs.config.js
main.ts
import {platformBrowserDynamic} from ‘@angular/platform-browser-dynamic’;
import {AppModule} from ‘./app-module’;
import {AppComponent} from ‘./app.component’;
const platform =platformBrowserDynamic();
platform.bootstrapModule(AppModule)
index.html
<html> <head> <meta charset="utf-8"> <title>First App</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css"> </head> <body> <my-app>Loading First Angular Application ...</my-app> </body> </html>