language-tools: Component type is missing
I have just created a project with vite npm create vite@latest
:
The type of the component is always any
:
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 10
- Comments: 20 (5 by maintainers)
FYI to solve this issue temporarily, install typescript@5.0 in your workspace and switch to it:
The new version of vscode ships typescript@5.1 which breaks the type.
Filed an issue: https://github.com/microsoft/TypeScript/issues/54630
Because the latest VSCode ships typescript 5.1.3
Just found the reason: Link
Unresolved any is no longer “any” ¯_(ツ)_/¯