I recently created a new laravel 8 project using Breeze for the authentication and tailwind css. All worked perfectly when running npm run watch
but once I run npm run prod
I ran into errors. I noticed that the Tailwind docs mention that there are PostCSS issues so you need to unistall and run
npm install tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
I done that however every time I run npm run prod
now the build quits at 98% and says
Additional dependencies must be installed. This will only take a moment.
Running: npm install postcss@^8.1 --save-dev --legacy-peer-deps
npm WARN [email protected] requires a peer of webpack@^1 || ^2 || ^3 || ^4 but none is installed. You must install peer dependencies yourself.
Finished. Please run Mix again.
This auto updates PostCSS to 8.1 every time.
After that if I run npm run prod
again it does the exact same message over and over.
I've tried removing the browsersync plugins and trying again but it still doesn't work.
Anyone ran into this or got a solution?