devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

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

Open Pentadome opened this issue 1 year ago • 2 comments

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

Pentadome avatar Sep 10 '24 11:09 Pentadome

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

webfansplz avatar Sep 11 '24 08:09 webfansplz

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(),
  });

Pentadome avatar Sep 13 '24 12:09 Pentadome