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 400 forks source link

v2.1.0 regression on uni-app projects #4737

Closed ModyQyW closed 2 months ago

ModyQyW commented 2 months ago

Vue - Official extension or vue-tsc version

2.1.0

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

➜  ~/Documents/uni-helper/typed/playground git:(main) ✗ npx envinfo --system --binaries --browsers

  System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 118.70 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/node
    npm: 10.5.0 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/npm
    pnpm: 9.9.0 - ~/.local/state/fnm_multishells/52235_1724893566594/bin/pnpm
    Watchman: 2024.08.26.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 128.0.6613.85
    Safari: 17.6

Steps to reproduce

  1. git clone https://github.com/uni-helper/typed && typed
  2. corepack enable
  3. pnpm install
  4. pnpm run build
  5. Open playground with VSC like code playground
  6. Check pages/index/index.vue

What is expected?

Types are fine like v2.0.28.

image

What is actually happening?

I get any.

image

Link to minimal reproduction

Please check steps.

Any additional comments?

I am supporting uni-app component types by Volar. Always thank you for your work!

davidmatter commented 2 months ago

Workaround for now: Add the following to your tsconfig.compilerOptions:

"paths": {
      "vue/__globalTypes_3.4_false": ["node_modules/vue/__globalTypes_3.4_false.d.ts"]
}