-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
循环引入导致的诡异问题 #5128
Labels
Comments
缺少有效信息是解决不了问题的,如果无法复现可以考虑远程 https://github.com/vuejs/language-tools/wiki/Help-Us-Investigate-Issues-Remotely |
周末我尝试还原一下试试,目前已经通过 PS:能否在 tsc 命令上添加参数,输出 debug 日志? |
你也可以下载一个 Volar Lab 扩展自己调试看看,把组件的虚拟代码粘到文件旁边,看看类型在哪里循环了。 |
调查结果:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue - Official extension or vue-tsc version
2.2.0
VSCode version
1.96.4
Vue version
3.5.13
TypeScript version
5.7.3
System Info
package.json dependencies
Steps to reproduce
几乎无法复现(在小型项目中模拟未出现),但知道是因为循环引入导致的问题(A 导入 B B 导入 A ,或者 A 导入 B B 导入 C C 导入 A),报错信息如下:
最终使用
defineAsyncComponent
的形式导入组件问题消失What is expected?
希望循环引入时可以正常处理
What is actually happening?
出现了此错误
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: