This error occurs when packaging with postcss: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
I’ve been searching for information for a long time because the versions are incompatible,
Solution: create a new postcss.config.js file under the root directory
The file configuration is as follows
module.exports={
plugins:[
require("postcss-preset-env")
]
}
Then delete the options in webpack.config.js and package again.
Read More:
- [Solved] npm Error: Error: Cannot find module ‘postcss-loader‘
- [Solved] AttributeError: ‘openvino.inference_engine.ie_api.IENetwork‘ object has no attribute ‘input_info‘
- [vite] Internal server error:options.devServer.transformWidthEsBuild is not a function…
- How to Solve Error:options.query cannot be used with loaders
- visual studio Error D8016 ‘/ZI’ and ‘/Gy-‘ command-line options are incompatible
- [Solved] Error: ‘attrition‘ is not an exported object from ‘namespace:rsample‘
- IDEA reports an error Could not reserve enough space for xxxxKB object heap processing
- Mac Start IDEA Error: Cannot load JVM bundle…Value of IDEA_VM_OPTIONS is (null)
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- [Solved] redis Error: AttributeError: ‘list‘ object has no attribute ‘decode‘
- Cmake Setting Support C++11 This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options
- [Solved] AttributeError: ‘depthai.node.ObjectTracker‘ object has no attribute ‘setTrackerIdAssigmentPolicy‘
- [Solved] Upload object failed, error: error domain = nscocoaerrordomain code = 260 “aliyun object stores OSS IOS upload files
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- [Solved] AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- Numpy.exp Function Error ‘Float’ object has no attribute ‘exp’
- Peewee insert data error:’buffer’ object has no attribute’translate’
- Webpack packaging error TypeError: this.getOptions is not a function at Object.lessLoader
- Pyqt5 Error: AttributeError: ‘QWidget‘ object has no attribute ‘setCentralWidget‘