PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Failed to load home.component.html

Open maxisam opened this issue 9 years ago • 2 comments

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

  • I'm submitting a ... [ X] bug report

  • What is the current behavior?

I just download the whole project clean and run yarn from the beginning.

After npm start, the site can't start correctly.

the error I got was

Failed to load home.component.html.

Apparently it trys to load the page from root but fail.

http://localhost:3000/home.component.html

My best guess is webpack's issue ?

  • Please tell us about your environment:

I tried it on 2 machines. None of them works. Same error message.

npm 6.9.5 , npm 7.2 | Chrome

maxisam avatar Feb 08 '17 04:02 maxisam

same error

szzProject avatar Feb 08 '17 08:02 szzProject

Related issue https://github.com/AngularClass/angular2-webpack-starter/issues/1484

can be fixed by fixing angular2-template-loader to 0.6.0 (0.6.1 is installed currently, which apperently breaks the build) https://github.com/AngularClass/angular2-webpack-starter/issues/1484#issuecomment-277725743

https://github.com/TheLarkInn/angular2-template-loader/issues/50 fix is on it's way. You can also solve it by adding a dangling comma after the templateUrl

maxx0r avatar Feb 08 '17 08:02 maxx0r