Skip to content

Multiline style breaks Volar Typescript #2519

@jmroon

Description

@jmroon

Note: this happens in both Vue 2 and Vue 3.

The below example is using the Vue 3 starter app. If you add any spaces around a bound attribute in the template, it breaks typescript on all multiline styles in the template.

Before:
image

After (add a space after 'hello'
image

And if you manually remove the space, the error remains:
image

The error eventually resolves itself after typing elsewhere in the file. But any spaces in any bound attributes triggers the bug.

Another odd behavior, is that if I use the Volar formatter, the style tags will continuously indent themselves on save. So this might be a hint:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions