报错 用react18版本时遇到的问题 antd的Menubar接口内未定义children属性 而react18对ts的规定如下 解决方法 只能将react版本降级 或者 等待antd升级 yarn add react@17