vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 403 forks source link

vue 3.5 `useTemplateRef` is transform type mistake of `unplugin-vue-macros/volar` #4803

Closed Gehbt closed 2 months ago

Gehbt commented 2 months ago

Vue - Official extension or vue-tsc version

2.1.4

VSCode version

1.92.2

Vue version

3.5.0

TypeScript version

5.4.5

System Info

No response

package.json dependencies

{
  "dependencies": {
    "vue": "^3.5.0"
  },
  "devDependencies": {
    "unplugin-vue-macros": "^2.11.6",
  },
}

Steps to reproduce

solve

What is expected?

image

What is actually happening?

image

Link to minimal reproduction

https://github.com/Gehbt/vls-bug-repro1

Any additional comments?

It also cause any virtual file generate error image

zhiyuanzmj commented 2 months ago

useTemplateRef will be removed from vue-macros in next version.