We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
With vite 5.x, I am getting circular imports with this plugin on any page I use useRouter() or useRoute()
useRouter()
useRoute()
For example:
vite:hmr [file change] src/components/AddinFooter.vue +4s vite:hmr [vue:update(template)] D:/xpna/main/src/xpna.addin.client/src/components/AddinFooter.vue +10m vite:hmr circular imports detected: /src/components/AddinFooter.vue -> virtual:vue-router/auto -> virtual:vue-router/auto/routes -> /src/pages/addin.vue -> /src/components/AddinFooter.vue +19ms 6:21:46 pm [vite] page reload src/components/AddinFooter.vue (circular imports)
Is there anyway to stop this happening as at dev time its causing page reloads instead of HMR updates?
In my vite.config plugins I am using
vite.config
VueRouter:
import VueRouter from 'unplugin-vue-router/vite' .... plugins: [ VueRouter({}) ... ] ....
AutoImports:
import { VueRouterAutoImports } from 'unplugin-vue-router' .... plugins: [ AutoImport({ imports: [VueRouterAutoImports] }), ... ] ....
The text was updated successfully, but these errors were encountered:
Duplicate of #132
Sorry, something went wrong.
No branches or pull requests
Hi there,
With vite 5.x, I am getting circular imports with this plugin on any page I use
useRouter()
oruseRoute()
For example:
Is there anyway to stop this happening as at dev time its causing page reloads instead of HMR updates?
In my
vite.config
plugins I am usingVueRouter:
AutoImports:
The text was updated successfully, but these errors were encountered: