Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pug templates no longer compile with an initial indent #12611

Closed
arnaugiralt opened this issue Jul 4, 2022 · 0 comments
Closed

Pug templates no longer compile with an initial indent #12611

arnaugiralt opened this issue Jul 4, 2022 · 0 comments

Comments

@arnaugiralt
Copy link

arnaugiralt commented Jul 4, 2022

Version

2.7.1

Reproduction link

https://github.com/arnaugiralt/vue-2.7.1-pug-indent-error

Steps to reproduce

  • Clone repo
  • npm install
  • npm run start

What is expected?

The template should compile

What is actually happening?

Module build failed (from ./node_modules/pug-plain-loader/index.js):
Error: /src/App.vue:2:1
    1| 
  > 2|   #foo
-------^
    3|     h1 Vue 2.7.1 Pug compiler error
    4|     p This template is indented and it breaks during compilation
    5|     p If the indent is removed, everything works just fine

unexpected token "indent"

This happened before, in 2.5.18 (see issue #9169).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant