React项目按需打包设置后报错./node_modules/antd/es/style/index.less (./node_modules/css-loader/dist/cjs.js??r...

./node_modules/antd/es/style/index.less (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-7-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-
7-3!./node_modules/less-loader/dist/cjs.js??ref--6-oneOf-7-4!./node_modules/antd/es/style/index.less)
ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.

yarn remove less-loader
yarn add [email protected]

你可能感兴趣的:(React项目按需打包设置后报错./node_modules/antd/es/style/index.less (./node_modules/css-loader/dist/cjs.js??r...)