Skip to content

Pug templates no longer compile with an initial indent #12611

Closed
@arnaugiralt

Description

@arnaugiralt

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).

Activity

added a commit that references this issue on Jul 5, 2022
a449b7d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @arnaugiralt

        Issue actions

          Pug templates no longer compile with an initial indent · Issue #12611 · vuejs/vue