I'm trying to follow the Angular 2 style guideline 04-10 Create and Import Barrels found here: https://angular.io/docs/ts/latest/guide/style-guide.html
When I run my app, angular now tries to load a file that doesn't exist: "my-component-name-here.js".
To illustrate the problem, I've modified the Angular 2 sample app to use a barrel file and it throws a 404 error now as well.
I put the heroes component files into their own folder called heroes. I created a new file called heroes/index.ts:
export * from './heroes/heroes.component';
I changed the import statement in app.component.ts to:
import { HeroesComponent } from './heroes';
When the app tries to load it has the following error as seen in the developer console:
Error: Error: XHR error (404 Not Found) loading app/heroes.ts(…)
The plunkr is found here: http://plnkr.co/edit/YXY0PwuFot1g1s6qTqDt?p=preview
I suspect this has something to do with SystemJS but I don't know enough about it to fix it. Can anyone help? Thanks in advance!