Home

Issue: 1270

Inability to use shortcut colon for v-bind in pages

[issue link]

Maybe I forgot to configure something but I can’t use the colon shortcut for v-bind in pages.

step(
  v-for="step in steps"
  :description="step.description"
  :key="step.number"
  :number="step.number"
  :title="step.title"
)

Will result in:

Module build failed: Error:
    18|           step(
    19|             v-for="step in steps"
  > 20|             :description="step.description"
--------------------^
    22|             :key="step.number"
    23|             :number="step.number"

Syntax Error: Unexpected token

The strange thing is that sometimes this shortcut seems to work in files within the components folder.

This question is available on Nuxt.js community (#c1122)