-
-
Notifications
You must be signed in to change notification settings - Fork 504
Closed
Copy link
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 firsthas workaround🔩 p2-edge-case
Description
Vue - Official extension or vue-tsc version
latest
VSCode version
latest
Vue version
3.5.25
TypeScript version
5.9.3
System Info
in vueuse playground.package.json dependencies
{}Steps to reproduce
<script setup lang="ts">
import { ref } from 'vue';
defineProps<{ msg: string }>();
const count = ref(eee);
</script>
<script lang="ts">
export default {
name: '1212'
}
export const eee = 1
</script>
<template>
<div class="flex items-center justify-center w-screen h-screen">
{{ count }}
</div>
</template>What is expected?
No longer display the ts(2448) error
What is actually happening?
Block-scoped variable 'eee' used before its declaration.ts(2448)
App.vue(13, 14): 'eee' is declared here.
Link to minimal reproduction
Any additional comments?
No response
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 firsthas workaround🔩 p2-edge-case