-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
导入类型时省略.tsx后缀,在defineProps<>中使用导入的类型,会提示Failed to resolve import source "xxxx" #10635
Comments
try rename file as .ts or import ./xxxxx.tsx |
|
maybe can find answer in vite
|
It seems not related to Related Codes:
|
…n is omitted (vuejs#10637) Co-authored-by: liuxiaofei <[email protected]> Closes vuejs#10635
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: