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

🐛 [BUG] 路由错误 #11189

Open
oyecomowa opened this issue Mar 19, 2024 · 7 comments
Open

🐛 [BUG] 路由错误 #11189

oyecomowa opened this issue Mar 19, 2024 · 7 comments

Comments

@oyecomowa
Copy link

oyecomowa commented Mar 19, 2024

🐛 bug 描述

White screen when first lunch the app, checked console and it shown Error: Absolute route path "/*" nested under path "/user" is not valid. An absolute child route path must start with the combined path of all its parent routes.

© 版本信息

  • ant-design-pro@6.0.0
  • Umi v4.1.2
  • Safari
  • Mac OS

🚑 其他信息

To fix this issue, I changed the /* path to a relative path to *.

@C2yb8er
Copy link

C2yb8er commented Mar 20, 2024

Brother, this is how I escaped the torture of the blank page. 😄

@ChetWang
Copy link

是的,最新版使用pro create xxx,选择complete创建项目后,yarn start运行后,浏览器打开显示的是空白界面,控制台报错:
Uncaught Error: Absolute route path "/*" nested under path "/user" is not valid. An absolute child route path must start with the combined path of all its parent routes.

@RowinaDu
Copy link

RowinaDu commented Mar 25, 2024

https://blog.csdn.net/qq_45361382/article/details/136095169
66c2b5bd57bc424cb25387834ebd3e0f

@itart-top
Copy link

+1

2 similar comments
@xllily
Copy link

xllily commented Jun 6, 2024

+1

@HandsomeWolf
Copy link

+1

@BBQFIL
Copy link

BBQFIL commented Jun 19, 2024

image
这里直接写死可以解决。

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

No branches or pull requests

8 participants