spatie / laravel-mix-purgecss

Zero-config Purgecss for Laravel Mix
https://spatie.be/en/opensource
MIT License
874 stars 38 forks source link

Failed to Compile with Laravel Spark #20

Closed randyrankin closed 6 years ago

randyrankin commented 6 years ago

First off, thank you and great work! I hit a bit of a problem with a Laravel Spark 6 project. npm run prod produces the following::

 ERROR  Failed to compile with 50 errors                                                                         7:35:23 AM

These dependencies were not found:
auth/register-braintree in ./resources/assets/js/spark-components/bootstrap.js
auth/register-stripe in ./resources/assets/js/spark-components/auth/register-stripe.js
kiosk/add-discount in ./resources/assets/js/spark-components/kiosk/add-discount.js
kiosk/announcements in ./resources/assets/js/spark-components/kiosk/announcements.js
...
sebastiandedeyne commented 6 years ago

This doesn't really look like it has anything to do with this package...

Are you sure you're not encountering this issue without .purgeCss()?

If it's still a problem, please share the contents of your package.json and the output of npm ls

randyrankin commented 6 years ago

I found the problem: My package.json file was referring to "laravel-mix": "1.*". I changed to "laravel-mix": "2.*" and all ran fine. I should have read the installation guide more closely.

Thank you for responding so quickly, especially on a Saturday. I really appreciate all the hard work that you and the Spatie team put into these packages. Many thanks.