Skip to content
New issue

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

路由模式切换导致报错 #751

Open
Jiang-K-J opened this issue Dec 20, 2024 · 3 comments
Open

路由模式切换导致报错 #751

Jiang-K-J opened this issue Dec 20, 2024 · 3 comments
Labels
need reproduction Reproduction is needed

Comments

@Jiang-K-J
Copy link

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

@Jiang-K-J
Copy link
Author

image

@alexzhang1030
Copy link
Member

Can you provide a minimal reproduction? Thanks a lot

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

@alexzhang1030 alexzhang1030 added the need reproduction Reproduction is needed label Dec 20, 2024
@Jiang-K-J
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction Reproduction is needed
Projects
None yet
Development

No branches or pull requests

2 participants