导入类型时省略.tsx后缀,在defineProps<>中使用导入的类型,会提示Failed to resolve import source "xxxx" #10635
Labels
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
🔩 p2-edge-case
Vue version
3.4.21
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-uqa6ny
Steps to reproduce
constant.tsx
中定义类型“HelloWorldProps”HelloWorld.vue
中导入“HelloWorldProps”,省略constant.tsx
的文件扩展名defineProps<>
使用“HelloWorldProps”What is expected?
应用正常运行
What is actually happening?
终端报错:
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: