Nuxt.js: Pug not working in Nuxt.2.0

Created on 23 Jun 2018  路  4Comments  路  Source: nuxt/nuxt.js

Version

v2.0

Reproduction link

https://github.com/nuxt/nuxt.js/tree/dev/examples/markdownit

Steps to reproduce

Make sure to install nuxt-edge as the current dev version has the nuxt package.

i removed all modules from nuxt.config.js as md throws an error as well

What is expected ?

pug should render

What is actually happening?

This relative module was not found:

  • ./pug.vue?vue&type=template&id=6fbf9768&lang=pug in ./pages/pug.vue

Additional comments?

i have another larger nuxt project that i'm trying to convert to nuxt2.0 with hundreds of pug files. i'm consistently getting relative module not found in all of them.

This bug report is available on Nuxt community (#c7278)
bug-report

Most helpful comment

after alot of hacking around - i got pug to work by installing "pug-plain-loader"

All 4 comments

after alot of hacking around - i got pug to work by installing "pug-plain-loader"

duplicate of #3161

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

https://github.com/nuxt/nuxt.js/pull/4409

Pug works out of the box again :relaxed:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  路  3Comments

gary149 picture gary149  路  3Comments

vadimsg picture vadimsg  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

danieloprado picture danieloprado  路  3Comments