The Mix manifest does not exist
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') !!}
sankar
Updated on June 17, 2022Comments
-
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 about 6 yearsI think you need to run console command
npm run dev
or if you dont have node_module files runnpm install
thennpm run dev
-
sankar about 6 yearsalready install npm install and composer install
-
-
Mike almost 6 yearsFor 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 over 5 yearsThanks. Worked for me and should be the selected answer.
-
shaedrich about 3 yearsThanks for your answer. Are you sure, "h151778" is a folder on the thread owners server?
-
Parsa Samandizadeh almost 3 yearsNo I made a mistake, it was only a sample which was mine