Laravel-mix: Error: [object Object] is not a PostCSS plugin

Created on 14 Oct 2020  路  4Comments  路  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: 6.0.0-beta.10
  • Node Version 14.13.1
  • NPM Version 6.14.8
  • OS: 10.15.6 (19G2021)

Description:

Compiling sass results in an error:

ERROR  Failed to compile with 1 errors                                                                                                                                                                        12:30:30 AM

error  in ./resources/sass/app.scss

Error: [object Object] is not a PostCSS plugin

I am not using PostCSS at all.

I upgraded to fix an issue with the manifest files being put in the wrong folder ( have not confirmed that it's solved for me )

Steps To Reproduce:

const mix = require('laravel-mix')
mix.sass('resources/sass/app.scss', 'css/')
stale

Most helpful comment

I had this error too, I resolved it by running yarn add postcss --dev.

What were the Babel errors @adampatterson as you may have just moved the error on?

All 4 comments

I attempted to install PostCSS npm install postcss --save-dev and then I got a whole bunch of Babel errors so I reverted and now the error I have is [webpack-cli] Error: Cannot find module 'postcss'

I had this error too, I resolved it by running yarn add postcss --dev.

What were the Babel errors @adampatterson as you may have just moved the error on?

@iamthefreeman I tried that and it resulted in a tone of Babel errors.

I might try again and clear everything out.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings