R
R
ravshan selimov2021-06-16 10:46:29
Pug
ravshan selimov, 2021-06-16 10:46:29

How to fix unexpected token "indent" when using pug in vue?

Hello.
I am using pug(vue-cli-plugin-vue) in a vue3 project.
When I do this

<template lang="pug">
  .app-container
    preloader(v-if="loading" type="preloader")
    router-view
</template>

An error is thrown `unexpected token "indent"`
The problem is that there is a tab on the root DOM element of the vue template

. If you remove the tab, everything works
<template lang="pug">
.app-container
  preloader(v-if="loading" type="preloader")
  router-view
</template>


How can I fix it, google found nothing, saw issues on github nothing sensible

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question