vuejs / language-tools

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

Global components lost types with typescript 5.5 #4488

Closed KazariEX closed 3 months ago

KazariEX commented 3 months ago

Vue - Official extension or vue-tsc version

2.0.21

VSCode version

1.90.0-insider

Vue version

3.4.29

TypeScript version

5.5.2

System Info

System:
  OS: Windows 10 10.0.19045
  CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400F @ 2.60GHz
  Memory: 20.74 GB / 31.87 GB
Binaries:
  Node: 22.0.0 - D:\Program Files\nodejs\node.EXE
  Yarn: 1.22.22 - D:\Program Files\node\node_global\yarn.CMD  
  npm: 10.8.0 - D:\Program Files\nodejs\npm.CMD
  pnpm: 9.4.0 - D:\Program Files\node\node_global\pnpm.CMD
Browsers:
  Edge: Chromium (126.0.2592.61)
  Internet Explorer: 11.0.19041.4355

Steps to reproduce

直接看组件悬停提示

Link to minimal reproduction

https://github.com/KazariEX/nuxt4-minimal

Any additional comments?

使用 Nuxt 4 默认的 srcDir: "app/" 后,<template> 内的所有组件丢失类型定义

so1ve commented 3 months ago

Does ts 5.4 work?

KazariEX commented 3 months ago

It works.

so1ve commented 3 months ago

https://github.com/microsoft/TypeScript/issues/58960

7iomka commented 3 months ago

Same issue with all my components.... 5.4 works fine

so1ve commented 3 months ago

Fixed by #4492. Please upgrade to 2.0.22.

warflash commented 3 months ago

@so1ve Is 2.0.22 published on the marketplace yet? Or do we need to sideload it from somewhere? For me the most recent version is 2.0.21 image Thanks!

johnsoncodehk commented 3 months ago

I think I executed the publish command locally, and I've seen other people have issues with releases not showing up in Marketplace, maybe it's the same issue. (Already manually uploaded a new version for 2.0.22.) https://github.com/microsoft/vscode-vsce/issues/985

warflash commented 3 months ago

Now 2.0.22 shows up for me and I was able to update, appreciate the quick response and fix @johnsoncodehk!