-
Notifications
You must be signed in to change notification settings - Fork 809
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
[6.*] TypeError: Cannot read property 'postCss' of undefined #2527
Comments
Can you bump to the latest beta and let me know if it’s still an issue? |
Bumped to |
ok it seems this error is coming from https://github.com/spatie/laravel-mix-purgecss . Once removed from the
Which seems to be coming from https://github.com/Elhebert/laravel-mix-sri . So removed that from the webpack.mix.js as well and now get:
So it seems https://github.com/spatie/laravel-mix-purgecss and https://github.com/Elhebert/laravel-mix-sri are not Laravel Mix 6 ready but the last error does indeed seem directly related to Mix? |
Sounds like PostCSS isn't installed. Try Though I need to figure out why you didn't have access to that. We have it listed as a dependency. |
Some progress after installing postcss. Strange indeed it didn't install with Mix.
|
We're too far down the rabbit hole at this point. If you can break it down to a small example that reproduces that "illegal operation" error, I can help more. Everything else is related to plugin support for PostCSS8. |
Confirming installing postcss fixes the issue for me. Using |
The latest version of Mix auto-installs PostCSS v8 in your root package.json file to work around this problem. I've opened a PR with laravel-mix-sri that will let it work with Mix v6: Elhebert/laravel-mix-sri#25 |
laravel-mix@6.0.0-beta.4
v12.19.0
6.14.8
Ubuntu 20.04
Description:
When attempting to run
npm run prod
ornpx mix -p
I get the following output immediately.web pack.mix.js
The text was updated successfully, but these errors were encountered: