pugjs / pug-loader

Pug loader module for Webpack
MIT License
425 stars 119 forks source link

Cannot find module 'pug' #103

Closed mittalyashu closed 6 years ago

mittalyashu commented 6 years ago

Getting this error.

image

I was trying to use jade as a template in HtmlWebpackPlugin, but it's somehow not working.

johanguse commented 6 years ago

Same here...

zigang93 commented 6 years ago

as error said, missing pug package

npm i -D pug

Please install the pug before u start using pug-loader

mittalyashu commented 6 years ago

Do we also need to use pug (package) inside the webpack config file too?

zigang93 commented 6 years ago

No.. no need.

mittalyashu commented 6 years ago

Okay. Thanks

adebigare commented 5 years ago

I know this issue is closed, but I wonder if a quick note could be added to the readme regarding adding the pug package?

appsparkler commented 5 years ago

This is what worked for me:

Install the pug npm module npm i -D pug

andyjessop commented 5 years ago

I'm sure things like this seem obvious, but a little documentation on installation would be really helpful.