Did you install all the node_modules?
Laravel-Mix (WebPack) does not work on Linux when deploying (work on mac)
Hi
I have very strange problem, I have spinned off brand new 16.04 Ubuntu and same results, when deploy from git (or full checkout) and run npm run dev or npm run prod it just compiled very limited amount of assets:
Asset Size Chunks Chunk Names
mix.js 537 bytes 0 [emitted] mix
mix-manifest.json 26 bytes [emitted]
Then the Laravel App complains that can not find mix Unable to locate Mix file: /css/login.css. Please check your webpack.mix.js output paths and try again.
When I run this on Mac I get this result:
Asset Size Chunks Chunk Names
/js/login.14837ff8fc3cfefcf6bf.js 287 kB 0 [emitted] [big] /js/login
/css/login.22c40956ea8991802501.css 40.7 kB 0 [emitted] /js/login
mix-manifest.json 116 bytes [emitted]
And everything works.
I have same version of node, npm, i have done clean fresh install of npm install, even clean fresh of OS.
Any ideas?
Thanks
Petr
Some explanation on this issue here : https://github.com/JeffreyWay/laravel-mix/issues/650
Solutions: https://github.com/JeffreyWay/laravel-mix/issues/533#issuecomment-287960097
!
Please or to participate in this conversation.