ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!

Home Page:https://pro.ant.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛 [BUG] 路由错误

oyecomowa opened this issue · 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.

commented

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