问题
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.
回答1:
I think it's because of that 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.
回答2:
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.
回答3:
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
.
回答4:
Maybe it will be useful for someone, when I try to visit this URL example.com/nova/login
I find this error
The Mix manifest does not exist.
(View: example/nova/resources/views/auth/layout.blade.php)
In my case executing next command was wrong:
npm run production
npm run dev
php artisan vendor:publish --provider="Laravel\Horizon\HorizonServiceProvider"
etc.
I just forgot to install Nova library after I has recovered project, php artisan nova:install
回答5:
You should create a symlink of storage/app/public
php artisan storage:link
来源:https://stackoverflow.com/questions/48973311/the-mix-manifest-does-not-exist