Recently, I was going through installation of Laravel and mixing it with WordPress. It’s pretty simple with Sage theme and you can install the CSS frameworks like Tailwind, Bootstrap and others.
The errors occur when you try to build it using yarn.
After initial installation, we can just use yarn to make sure we have all the required dependencies installed and use yarn build to build the app.
What yarn build does is it compiles and optimizes the files in your assets directory.
In simple words, when you add some code in your .scss files and try to compile it, it might throw this error:
yarn run v1.22.10
$ webpack --progress --config resources/assets/build/webpack.config.js
Error: Failed because of a stylelint error.
at /Users/yogeshchauhan/folder-1/WordPress-directory/wp-content/themes/sage/node_modules/stylelint-webpack-plugin/lib/run-compilation.js:39:14
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The fix is in these 4 lines as you can see on GitHub Sage Theme Repo as well.
new StyleLintPlugin({
failOnError: !config.enabled.watcher,
syntax: 'scss',
}),
COMMENT THOSE 4 LINES ABOVE from /resources/assets/build/webpack.config.js and it should fix your problem.
Just like this:

error Laravel package Sage solution style theme yarn