Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The corresponding closed tag is no longer automatically found in template #2009

Closed
xd-shadow opened this issue Oct 13, 2022 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@xd-shadow
Copy link

image
image

When I cursor over a div I don't highlight the corresponding closed tag.It seemed to work before the last update?

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Oct 13, 2022

It's happen after v1.0.0, as a workaround, you can setting vueCompilerOptions.jsxTemplates = true to avoid this problem.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Oct 13, 2022
@xd-shadow
Copy link
Author

It's happen after v1.0.0, as a workaround, you can setting vueCompilerOptions.jsxTemplates = true to avoid this problem.

Sorry, where is this methods set?

@xiaoxiangmoe
Copy link
Collaborator

In tsconfig.json,
add

    "vueCompilerOptions": {
        "target": 2.7 or 3 or 2,
        "jsxTemplates": true
    }

@xd-shadow
Copy link
Author

In tsconfig.json, add

    "vueCompilerOptions": {
        "target": 2.7 or 3 or 2,
        "jsxTemplates": true
    }

thanks.

@xd-shadow
Copy link
Author

This does not seem to be possible, and this setting will cause other problems.
image
ts will think that my is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants