You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
我有一个路由组件user.vue,他引入了一个公共组件CommonList.vue;
在CommonList.vue中引入了user.js(pinia store模块);
在user.js中我写了动态生成路由的方法,其中使用了
import.meta.glob
来导入所有路由组件(包括 user.vue)进行动态加载。但是这种导入让我每次修改user.vue,会提示circular imports detected,并给出了循环导入的顺序
Reproduction
https://stackblitz.com/edit/vitejs-vite-4sktev?file=vite-project%2Fsrc%2FApp.vue,vite-project%2Fsrc%2Ftest.js,vite-project%2Fsrc%2Fcomponents%2FHelloWorld.vue&terminal=dev
Steps to reproduce
cd vite-project
npm i
npm run dev
修改HelloWorld.vue会触发circular imports detected
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: