Description
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
System:
OS: Windows 10 10.0.26100
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 9.71 GB / 31.56 GB
Binaries:
Node: 22.11.0 - D:\Program Files\nodejs\node.EXE
Yarn: 1.22.21 - D:\Users\jcwang\AppData\Roaming\npm\yarn.CMD
npm: 10.4.0 - D:\Users\jcwang\AppData\Roaming\npm\npm.CMD
Browsers:
Edge: Chromium (127.0.2651.86)
Internet Explorer: 11.0.26100.1882
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