Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Typescript: Readme missing note about different between Vue3's template and Vue2's template type checking #32

Closed
@TrungRueta

Description

@TrungRueta

Hi!

In plugin's readme for now we missing note about setup compact mode for project to merge type checking template.

For now, after setup plugin and volar (vscode ext). when write template tag + v-for, it force to put key on same template tag:

image

This because volar checking follow Vue3 guide. In Vue2 key must apply to all child tags of <template /> tag, not itself.

To avoid this issue in Volar's document they has compact mode:

Volar - setup vue 2

// tsconfig.json
{
  "compilerOptions": {
    ...
  },
  "vueCompilerOptions": {
    "experimentalCompatMode": 2
  },
}

Im has not experience to creating PR on git, what i can do is raise issue and count of you guys :) . Hope my info i usefull.

Thank for plugin!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions