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

Cannot read property 'call' of undefined

GTOsss opened this issue · comments

If I try to use no existed mixin I'll get error:

ERROR in ./src/pages/about.pug (./node_modules/html-webpack-plugin/lib/loader.js!./src/pages/about.pug)
    Module build failed (from ./node_modules/pug-html-loader/lib/index.js):
    TypeError: Cannot read property 'call' of undefined

It looks like bug in loader. I think it would be better to get a clear error.

If someone gets this error, make sure that you are not using a non-existing mixin.