vuejs / devtools-next

The next iteration of Vue DevTools
https://devtools.vuejs.org/
MIT License
1.37k stars 94 forks source link

Vue devtools freezes pages. Stuck on 'normalizeRouterInfo' function. #606

Open Pentadome opened 1 week ago

Pentadome commented 1 week ago

Devtools causes page to freeze on normalizeRouterInfo -> deepClone -> clone. The clone function keeps calling itself. Sadly I do not know how to reproduce this.

webfansplz commented 1 week ago

Can you share the vue-router config or try to give a mini repo 🙏

Pentadome commented 5 days ago

like this?

setupLayouts is from vite-plugin-vue-layouts.

import { setupLayouts } from 'virtual:generated-layouts';

 const router = createRouter({
    scrollBehavior: () => ({ left: 0, top: 0 }),
    // see: https://uvr.esm.is/guide/extending-routes.html#extending-routes-at-runtime
    routes: setupLayouts(routes),
    history: createWebHistory(),
  });