angular2-template-loader icon indicating copy to clipboard operation
angular2-template-loader copied to clipboard

Remove `require` replacement from loader.

Open TheLarkInn opened this issue 9 years ago • 1 comments

For the offline compiler to work, we want to instead of having require('./path') instead have the template resolved through the loader chain, the output of the template will be the actually source.

  • [ ] Use this.resolve
  • [ ] Probably need promises Promise.all() to defer loader return until the full resolve of all referenced urls.

TheLarkInn avatar Aug 18 '16 16:08 TheLarkInn

Hi @TheLarkInn,

I receive the following error when I try to debug my node js server-side rendered Angular 4 App:

"_createStackFrameFromSourceMap: source '/src/app/app.component.ts' doesn't exist -> use inlined source"

After a lot of debugging and reading blogs, articles, GitHub issues and source code I found out that I'm not able to debug the real TypeScript files because Visual Studio Code is checking if the generated Source Map contains the actual source file - check here. If I remove the angular2-template-loader I'm able to debug my files but I also need the loader.

Do you have any plans for fixing this issue?

DimitarTachev avatar Jul 07 '17 12:07 DimitarTachev