skip to Main Content

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


  1. 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 script

    Login or Signup to reply.
  2. when you are pushing to production remove /public/build from .gitignore of course after running npm run build locally.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search