Reputation: 760
My project works fine in my localhost but when I upload I get the following error :
(3/3) ErrorException The Mix manifest does not exist.
Any ideas how I can solve it? I have previously had some other errors (like welcome.blade not defined).
Upvotes: 0
Views: 1623
Reputation: 3468
You need to upload your /public/mix-manifest.json file to the server. This is a small file that contain versioning information for JavaScript and CSS assets to help with cache busting. In your Blade files you can use mix('some-file.js')
and so long as it’s in the mix manifest Laravel will create a URL with the a version querystring. See: https://laravel.com/docs/5.7/mix
Upvotes: 0
Reputation: 661
Just go to under the app/Providers, you will find your AppServiceProvider file and inside boot() method make the binding as below.
$this->app->bind('path.public', function() {
return base_path().'/../public_html';
});
Upvotes: 3
Reputation: 1042
run this in your terminal
npm install
npm run dev
if in production it is
npm run production
Upvotes: 0