Closed romanhrynevych closed 1 week ago
Confirmed, there is an issue with vue-tsc
when upgrading to typescript@5.5.2
. Same happens when you install 5.5.2
and use the workspace's typescript version rather than the one from vscode:
pnpm create vite@latest
pnpm update
App.vue
<template>
<HelloWorld msg="asdf" />
</template>
<script setup lang="ts">
import HelloWorld from './HelloWorld.vue'
</script>
HelloWorld.vue
<script setup lang="ts" >
defineProps<{ msg: string }>()
</script>
<template>
<div></div>
</template>
Make sure to pin your typescript dependency to ~5.4.0
and to use the typescript version shipped with vscode.
UPD: yeah, when change VS Code version of typescript to workspace v5.5.2, error shows in editor too
Maybe this is somehow related to: https://github.com/microsoft/TypeScript/issues/58960
True, please pin typescript to v5.4 for now
Vue - Official extension or vue-tsc version
2.0.21
VSCode version
1.90.2
Vue version
3.4.29
TypeScript version
5.5.2
System Info
Steps to reproduce
defineEmits stopped typing after updating to typescript v5.5.2
I think just create component with defineEmits and you must see an issue.
Link to minimal reproduction
No response
Any additional comments?
Interesting that inside VSCode defineEmits are shown by Vue Official (version v2.1.0-insiders.13) 🤔
Component is shadcn-vue PinInput
Error only received after
vue-tsc --noEmit
script running onsimple-git-hooks
pre-commitWhen making reproduction everything works fine with simple components, maybe issue inside Radix library, I don't know ðŸ«