Angular gives @angular/core 404 not found error when using directives
问题 When I add in this line of code into my @Component : directives: [HeroDetailComponent] The code breaks, and gives me this error: GET http://localhost:3000/@angular/core 404 (Not Found) These are the scripts in my index.html : <script src="node_modules/es6-shim/es6-shim.min.js"></script> <script src="node_modules/systemjs/dist/system-polyfills.js"></script> <script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> <script src="node_modules/angular2/bundles/angular2