-
-
Notifications
You must be signed in to change notification settings - Fork 484
Open
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it first🔩 p2-edge-case
Description
Vue - Official extension or vue-tsc version
3.5.18
VSCode version
N.A.
Vue version
3.5.18
TypeScript version
5.9.2
System Info
package.json dependencies
{
"imports": {
"vue": "https://cdn.jsdelivr.net/npm/@vue/[email protected]/dist/runtime-dom.esm-browser.js",
"vue/server-renderer": "https://cdn.jsdelivr.net/npm/@vue/[email protected]/dist/server-renderer.esm-browser.js",
"vue-router": "https://unpkg.com/[email protected]/dist/vue-router.esm-browser.js",
"@vue/devtools-api": "https://unpkg.com/@vue/[email protected]/lib/esm/index.js"
},
"scopes": {}
}
Steps to reproduce
- open the demo
- hover on the
counter
variable inside thebeforeRouteEnter
function inHomeView.vue
What is expected?
counter
is undefined
What is actually happening?
runtime:

Link to minimal reproduction
Any additional comments?
This is the simplest case. The real-world case I met is

It throws an error 'counter' is declared but its value is never read
for the import of counter
. If I delete the import the app will fail
Metadata
Metadata
Assignees
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it first🔩 p2-edge-case