vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 122 forks source link

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

Open Pentadome opened 2 months ago

Pentadome commented 2 months 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 2 months ago

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

Pentadome commented 2 months 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(),
  });