React设置antd3x自定义主题,TypeError: this.getOptions is not a function的解决方法
React设置antd3x自定义主题,TypeError: this.getOptions is not a function的解决方法
提示:主要使用:react-app-rewired 和 customize-cra实现antd3x版本自定义主题
问题
报错图片
分析:
1. 由于引入less-loader(第三方库)时,默认下载该库的最新版本。【 可能看到该文章时,版本已经高于8.0.0了】
2. antd3x版本的文档发布至今多年,疏于维护,更不上less-loader版本的更新。
3.
原创
2021-02-24 22:49:19 ·
1049 阅读 ·
1 评论