Due to the latest version of postcss-loader(v4.0.0) released on 9/7, an error ModuleBuildError occurs.
👇 Error message:
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
Due to the latest version of postcss-loader(v4.0.0) released on 9/7, an error
ModuleBuildError
occurs.👇 Error message:
Check major changes in release note,
There are two ways to fix this.
PostCss
topostcssOptions
package.json
The first method seems better, so let me make a pull request using the first method.