I have deployed my laravel project using hostinger. I’ve encounter a problem where there is Missing Vite Manifest File deploy at line
@vite(['resources/css/app.css', 'resources/js/app.js'])
How do i solve this?
I saw answers recommending on stack
npm run dev/npm install/ npm run build
I tried running them before uploading the files to the server, but they did not work. Is there ant other way to solve it?
2
Answers
If you are running it locally, you need to remove
/public/build
from.gitignore
otherwise it will never upload if you add it on.gitignore
.Another way, you could add
npm run build
, on your deploy scriptwhen you are pushing to production remove /public/build from .gitignore of course after running npm run build locally.