ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.04k stars 1.29k forks source link

🐛[BUG] pro-components 2.3.12 出现 routes 将会废弃,为了保证兼容请使用 children 作为子节点定义方式 #5977

Closed amin168 closed 1 year ago

amin168 commented 1 year ago

🐛 bug 描述

更新 pro-components2.3.12 版本后,控制台出现以下警告

image

© 版本信息

zcSkr commented 1 year ago

+1

netcore-jroger commented 1 year ago

就算修改为 children 还是会有这个警告。原因大概是因为这里: image

netcore-jroger commented 1 year ago

原来是这里 https://github.com/umijs/route-utils/blob/master/src/transformRoute/transformRoute.ts#L141 看来得等 @umijs/route-utils 发新版了。

WillWuWeijie commented 1 year ago

+1

0fan commented 1 year ago

用的umi4, pro-components升级到2.3.12后把路由routes改成chidren连项目都启动不起来

WuJiY commented 1 year ago

用的umi4, pro-components升级到2.3.12后把路由routes改成chidren连项目都启动不起来

+1

houkunlin commented 1 year ago

相同问题。 在 config/routes.ts 配置文件中使用 routes 来配置路由是正常可以编译运行的,但是浏览器访问的时候控制台提示警告信息,如果改为 children 则无法编译通过。

https://github.com/ant-design/ant-design-pro/issues/10258

@umijs/max 已安装版本: 4.0.21 @ant-design/pro-components 已安装版本: 2.3.10

lovewinders commented 1 year ago

+1

xguan2014 commented 1 year ago

+1

hancens1024 commented 1 year ago

+10086

Fiuck commented 1 year ago

+10010

bigzhu commented 1 year ago

能靠谱稳定点嘛? 这些改动好随意的样子, 这些不是应该随意改的地方.

另外路由和菜单的文档说明是消失了? v1 都还写了下

panhezeng commented 1 year ago

这种提示应该用 waring 而不是 error 吧, 还有改成 children 直接编译报错, 能不能不要这么激进,就算提示修改,也要修改后不出问题吧。

cxhcmc commented 1 year ago

遇到同样的问题

kaindy7633 commented 1 year ago

同样的问题 +1

mushroomlb commented 1 year ago

升级pro-components 到2.3.14依然存在

liuzhaowei55 commented 1 year ago

升级pro-components 到2.3.16依然存在

peterpanBest commented 1 year ago

+1

hejinguo commented 1 year ago

+1 @chenshuai2144

rrge commented 1 year ago

+1

xj89959853 commented 1 year ago

+1

xj89959853 commented 1 year ago

我到处寻找解决方案,看来大家都遇到了

jurieo commented 1 year ago

++++++11111,目前依然没有解决。。

chenshuai2144 commented 1 year ago

这个提示不会有任何问题,大家只要没有操作过 router 就不会有问题

netcore-jroger commented 1 year ago

@chenshuai2144 不知道你测试了没有,项目里面已经改成 children 了,但还是有这个提示。

houkunlin commented 1 year ago

看到控制台的警告信息,强迫症有点受不了

vominhtrius commented 1 year ago

I encountered similar problem. Has anyone solved this problem yet?

peterpanBest commented 1 year ago

+1

zhangxinyong12 commented 1 year ago
  '@ant-design/pro-components': 2.3.12_w5ozx5g45rrkuycam7gstefluy

我也遇到了。

请问,企业级还敢用吗?

mashirozx commented 1 year ago

2.4.2 已经没有这个问题了

"@ant-design/pro-components": "2.4.2", "antd": "5.3.2", "@umijs/max": "4.0.57", "umi-presets-pro": "2.0.3",

zhangxinyong12 commented 1 year ago

2.4.2 已经没有这个问题了

"@ant-design/pro-components": "2.4.2", "antd": "5.3.2", "@umijs/max": "4.0.57", "umi-presets-pro": "2.0.3",

好的。确实没问题了。我光想着降低版本号了。。。。。