Closed sebastiandedeyne closed 3 years ago
Fix is to install postcss
in the example, you need to manually install postcss
most of the time now as PostCSS 8 is meant to be used as a peerDependency 👍
From postcss-loader docs:
The latest Laravel Mix v6 beta now installs PostCSS 8 if it's not installed in the root package.json file. The postcss-loader
error also disappeared after moving PostCSS to a peer dependency in Mix.
Released!
This branch correctly compiles the test stylesheet, but there are a few more (I believe upstream) issues that need to be resolved before this is stable.
postcss-loader
is missing, despite it being installed and available innode_modules
. Addingpostcss-loader
as an explicit dependency solves the issueresolutions
entry in yourpackage.json
.Once the stylesheets builds without these workarounds, this can be merged. Either way, I'm waiting on a stable Laravel Mix 6 release to tag this one.