-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Describe the bug
In a Nuxt 4 project that uses Typescript, the referencing of HTML elements (no matter which one, Image, Canvas,...) using ref invokes the "Provide a language" warning.
To Reproduce
0. In VS Code, have this extension installed and activated
- In a vue file, create a canvas element in the template section
- in the script section, use "const canvasRef = ref()" to reference it
Expected behavior
No wiggly lines, no warning, no error
Visual Studio Code (please complete the following information):
- Version 1.102.3
Additional context
When I deactivate this extension, the wiggly lines are gone.
I am not a Typescript expert, but to my knowledge it is not possible to add attributes to Type Annotations. I also tried to apply Nuxt's config tricks (app.config.ts, using ...), but to no avail. Chatting with Chatgpt, Qwen, Kimi 2 was interesting, but didn't bring up any results.)
Metadata
Metadata
Assignees
Labels
No labels
