The Mix manifest does not exist

17,395

Solution 1

I think it's because you separated your laravel files from public folder.

and public_path() returns wrong path.

for being sure try dd(public_path()).

If that was wrong, you have to correct paths in your index.php file and add this code:

$app->bind('path.public', function() {
return __DIR__;
});

I had the same issue and found that the problem is this.

Maybe it's late to answer this question but it may help others.

Solution 2

I had the same error. This resolved it for me. npm run production

I tried npm run dev but it never created the manifest.js.

Solution 3

if you dont have node_modules folder, run npm install and then run npm run dev.

mix() helper function by default looks for the manifest json file in directory /public/manifest-json.js. check this file to exist.

Solution 4

Simply change the mix(css/app.css) to {!! asset('css/app') !!}

Share:
17,395
sankar
Author by

sankar

Updated on June 17, 2022

Comments

  • sankar
    sankar almost 2 years

    i'm created simple laravel project with this Laravel-Vue SPA starter project template and im uploaded this project to ubuntu server. all settings corect but i run this project returns this error "The Mix manifest does not exist. (View: /var/www/html/project/resources/views/index.blade.php)".

    please anyone help me. i'm new in laravel.

    • AH.Pooladvand
      AH.Pooladvand about 6 years
      I think you need to run console command npm run dev or if you dont have node_module files run npm install then npm run dev
    • sankar
      sankar about 6 years
      already install npm install and composer install
  • Mike
    Mike almost 6 years
    For me manifest-json.js doesn't exist in my working version. There's a mix-manifest.json in the public folder and a manifest.js in the public/js folder but copying those to my broken environment doesn't fix anything.
  • Ali Hesari
    Ali Hesari over 5 years
    Thanks. Worked for me and should be the selected answer.
  • shaedrich
    shaedrich about 3 years
    Thanks for your answer. Are you sure, "h151778" is a folder on the thread owners server?
  • Parsa Samandizadeh
    Parsa Samandizadeh almost 3 years
    No I made a mistake, it was only a sample which was mine