willyelm / pug-html-loader

Pug HTML loader for webpack

Home Page:https://github.com/willyelm/pug-html-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error

vanor89 opened this issue · comments

Hello, I am getting this error, Cannot read property 'state' of undefined..
I followed the instructions on the page and rendering is working if I add it under rules instead of loaders, my webpack.common.js is a bit different, it does not say loaders: under modules: it says rules, if I change it to loaders it doesnt work at all, if I add loaders and add the loader there it does not work at all and it says I should add the loader, the thing is that when it renders the template it does not recognize the variable when I try to use it.

I am using https://github.com/AngularClass/angular2-webpack-starter and then just trying to add pug support to that. I am trying to transcribe the app.component.ts template into a pug template and running into that error, it does not recognize the variable.

Same issue but for webpack2

Using #{{}} instead of {{}}