vuejs / language-tools

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

Attrs type error #4785

Closed teleskop150750 closed 2 months ago

teleskop150750 commented 2 months ago

Vue - Official extension or vue-tsc version

v2.1.4

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

System:
  OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400
  Memory: 8.11 GB / 15.38 GB
  Container: Yes
  Shell: 3.7.1 - /usr/bin/fish
Binaries:
  Node: 20.15.1 - /run/user/1000/fnm_multishells/38089_1725257095122/bin/node
  npm: 10.7.0 - /run/user/1000/fnm_multishells/38089_1725257095122/bin/npm
  pnpm: 9.9.0 - /run/user/1000/fnm_multishells/38089_1725257095122/bin/pnpm
Browsers:
  Chrome: 128.0.6613.84

package.json dependencies

No response

Steps to reproduce

https://github.com/teleskop150750/vue-language-generic

pnpm type-check

What is expected?

success

What is actually happening?

❯ pnpm type-check

vue-lang@0.0.0 type-check /home/teleskop150750/Documents/examples/vue/vue-lang vue-tsc --build --force

src/App.vue:6:36 - error TS2353: Object literal may only specify known properties, and '"aria-label"' does not exist in type '{ type: "multiple"; } & VNodeProps & AllowedComponentProps & ComponentCustomProps'.

6



Found 1 error.

 ELIFECYCLE  Command failed with exit code 2

### Link to minimal reproduction

https://github.com/teleskop150750/vue-language-generic

### Any additional comments?

_No response_
dten commented 2 months ago

Also get this going from 2.0.29 to 2.1.2