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

路由模式切换导致报错

Open Jiang-K-J opened this issue 1 year ago • 4 comments

我在使用qiankun做一个微前端,当子应用的路由由createWebHistory切换为createMemoryHistory模式时,开发者工具会报错 Cannot read properties of undefined (reading 'app') TypeError: Cannot read properties of undefined (reading 'app') image

Jiang-K-J avatar Dec 20 '24 02:12 Jiang-K-J

image

Jiang-K-J avatar Dec 20 '24 02:12 Jiang-K-J

Can you provide a minimal reproduction? Thanks a lot

可以提供一个最小复现吗,感谢

alexzhang1030 avatar Dec 20 '24 05:12 alexzhang1030

image image 通过按钮点击去改变路由的使用,其实就是动态修改路由的模式(createWebHistory 或者 createMemoryHistory),这样就会引起开发者工具的报错

Jiang-K-J avatar Dec 20 '24 07:12 Jiang-K-J

same issue

luvletterldl avatar May 06 '25 07:05 luvletterldl