Unexpectedly fails with postcss-loader v4.0.0
See original GitHub issueError I’m seeing with postcss-loader v4.0.0:
ERROR in ./assets/scss/style.scss
Module build failed (from ./node_modules/css-loader/dist/cjs.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.
- options has an unknown property 'plugins'. These properties are valid:
object { postcssOptions?, execute?, sourceMap? }
Issue Analytics
- State:
- Created 3 years ago
- Reactions:36
- Comments:24
Top Results From Across the Web
postcss-loader - Awesome JS
PostCSS loader for webpack. 62.7M. cloud_download ... unexpected failing on CSS syntax error (#593) (888d72e) ... v4.0.0. local_offer v4.0.0 ...
Read more >Open side panel - You.com
I'm trying to add a custom rule, which should use only style-loader and css-loader . This rule will be activated with .css files...
Read more >I have a Yarn problem when I try to deploy a Rails 6.x app. I ...
0.0 s => CACHED [node_modules 3/3] RUN yarn install 0.0s => CACHED [stage-4 5/8] COPY --from=node_modules /app/node_modules /app/node_modules ...
Read more >Error: Loading PostCSS Plugin failed: Invalid or unexpected ...
I got the same error when I tried deploying my Vue app to Digital Ocean droplet. Although my app was building and running...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem here. Downgraded to postcss-loader v3 to work (not ideal, but does the job for now):
I don’t use laravel-mix, but this is one of the few places I saw this error talked about, so adding comments on how I resolved it.
postcss-loader 4 seems to require postcss 8.x, but when I did the upgrade from 3 to 4, postcss was not upgraded automatically. Explicitly upgrading to postcss 8 and making the necessary changes to the postcss.config.js format (specifically
plugins: {}
topostcssOptions: { plugins: [] }
) fixed this problem up for me.Hope that helps somebody.