ant-design/ant-design-pro

🐛 [BUG] 路由错误

Opened this issue · 5 comments

🐛 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 *.

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

是的,最新版使用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.

+1

xllily commented

+1