Issue: 3161

[edge] Pug Not Working

[issue link]



Reproduction link


Steps to reproduce

With pug and pug-loader installed via Yarn, my old Nuxt 1 project (which works fine) is no longer working after removing Nuxt 1 and installing Nuxt 2. The error looks like this:

Screen Shot 2018-03-30 at 11.01.08 AM.png

What is expected ?

Project functions properly on current stable release.

What is actually happening?

Project fails and cannot render the pug template.

This bug report is available on Nuxt.js community (#c6806)