-
-
Notifications
You must be signed in to change notification settings - Fork 501
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/runtime-dom@3.5.18/dist/runtime-dom.esm-browser.js",
"vue/server-renderer": "https://cdn.jsdelivr.net/npm/@vue/server-renderer@3.5.18/dist/server-renderer.esm-browser.js",
"vue-router": "https://unpkg.com/vue-router@4.3.0/dist/vue-router.esm-browser.js",
"@vue/devtools-api": "https://unpkg.com/@vue/devtools-api@6.6.1/lib/esm/index.js"
},
"scopes": {}
}Steps to reproduce
- open the demo
- hover on the
countervariable inside thebeforeRouteEnterfunction 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
