-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema. #235
Comments
插个眼同问 :( |
temporary way to fix this problem:ant-design/ant-design#23624 😢 remove [email protected] and install [email protected] fixed on me.
|
啊我也刚看到这里。6.0刚出好像兼容方面有点问题,改成
就好了 |
谢谢,更换为[email protected] 重新build后成功了。谢谢大佬 |
Have the same issue, any updates? |
@pitops upgrade to customize-cra@next (1.0.0-alpha.0) helps for me |
+1 |
@pitops change the less-loader version from 6.0 to 5.0, then restart it. $ yarn remove less-loader |
如果使用6.x 如下配置 {
loader: 'less-loader',
options: {
lessOptions: {
javascriptEnabled: true
}
}
} |
Thanks @cosoc that worked |
I had same issue and fixed it by updating |
First: Install yarn add react-app-rewired customize-cra@next module.exports = override( |
For the one who is using 'create-react-app' to customize the theme can check the following settings: craco.config.js
package.json
|
thanks @rexuli that work |
Thank you so much. It works! |
完全根据文档做下来的,试的新建好几个项目了,还是不行。有大神指导一下什么原因吗?
报错信息如下:
Failed to compile
./src/Home/less/antMotionStyle.less (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-7-1!./node_modules/postcss-loader/src??postcss!./node_modules/less-loader/dist/cjs.js??ref--6-oneOf-7-3!./src/Home/less/antMotionStyle.less)
ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
object { lessOptions?, prependData?, appendData?, sourceMap? }
This error occurred during the build time and cannot be dismissed.
The text was updated successfully, but these errors were encountered: