antd-mobile常见问题汇总

在 create-react-app 中使用

antd-mobile 2.0

在 create-react-app 中使用 antd-mobile 需要自定义主题时,需要根据官方模板中的依赖版本进行安装否则会报各种错误!!

github 地址:https://github.com/ant-design/antd-mobile-samples/tree/master/create-react-app

package.json

 // 直接复制到项目中 yarn 更新依赖
"devDependencies": {
    "babel-plugin-import": "^1.2.0",
    "less": "^2.7.3",
    "less-loader": "^4.0.5",
    "react-app-rewired": "^1.2.9"
  }

less-loader 不要超过 5.0, react-app-rewired 不要超过 2.0.2-next.0,less@2.7.3

posted @   __Bowen  阅读(362)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示