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

Global components lost types with typescript 5.5 #4488

Closed
KazariEX opened this issue Jun 21, 2024 · 8 comments
Closed

Global components lost types with typescript 5.5 #4488

KazariEX opened this issue Jun 21, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@KazariEX
Copy link
Collaborator

KazariEX commented Jun 21, 2024

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 so1ve changed the title Missing reference in <template> with Nuxt 4 Global components lost types with Nuxt 4 Jun 21, 2024
@so1ve
Copy link
Member

so1ve commented Jun 21, 2024

Does ts 5.4 work?

@KazariEX
Copy link
Collaborator Author

It works.

@so1ve so1ve changed the title Global components lost types with Nuxt 4 Global components lost types with ts 5' Jun 21, 2024
@so1ve so1ve changed the title Global components lost types with ts 5' Global components lost types with typescript 5.5 Jun 21, 2024
@so1ve so1ve added bug Something isn't working and removed pending triage labels Jun 21, 2024
@so1ve
Copy link
Member

so1ve commented Jun 21, 2024

@7iomka
Copy link

7iomka commented Jun 22, 2024

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

@so1ve
Copy link
Member

so1ve commented Jun 23, 2024

Fixed by #4492. Please upgrade to 2.0.22.

@so1ve so1ve closed this as completed Jun 23, 2024
@warflash
Copy link

@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
Copy link
Member

johnsoncodehk commented Jun 23, 2024

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.)
microsoft/vscode-vsce#985

@warflash
Copy link

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

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

5 participants