ggcode
ggcode

Reputation: 13

Missing Vite Manifest File after deployment

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?

Upvotes: 0

Views: 1119

Answers (2)

KOOME KELVIN
KOOME KELVIN

Reputation: 9

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

Upvotes: 0

Saroj Shrestha
Saroj Shrestha

Reputation: 2875

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

Upvotes: 0

Related Questions