webpack-contrib/raw-loader

The template specified for component AppComponent is not a string

subramn opened this issue · 3 comments

When i try to upgrade an existing angular app using webpack , raw-loader, to 2.0.0 started receiving this error.
webpack build was successful, but when i ran the app in browser got this error.

when i downgraded to earlier version of raw-loader its working fine.

@subramn are you using angular2-template-loader? Is true, there's a similar issue still opened TheLarkInn/angular2-template-loader#86.

Investigate

@subramn #77
@Klaster1 problem in angular2-template-loader
probably angular2-template-loader should upgrade to generate imports too.
that would make it compatible with raw-loader 1 and 2
so feel free to send a PR with fix to this repo