在使用 antd 自定义主题时如果直接 yarn 按照命令按照你会发现编译时会报错,
this.getOptions is not a function; Inline JavaScript is not enabled. Is it set in your options?
这两个错误的原因是因为less、less-loader版本不同导致的
试试卸载当前版本,下载如下版本
yarn remove less
yarn remove less-loader
yarn add less@3.12.2
yarn add less-loader@7.1.0
antd 自定义主题发现编译时会报错
最新推荐文章于 2023-08-09 15:09:21 发布