The Mix manifest does not exist

眉间皱痕 提交于 2019-12-11 06:42:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!