OneBite.Dev - Coding blog in a bite size

Laravel vite manifest not found on deployment

How to solve error Laravel vite manifest not found on deployment

I got this error when I tried to deploy my Laravel site that using Vite on Forge

(Exception(code: 0): Vite manifest not found at ..)

This problem might be happen to other deployment as well, not just at Forge

Solution

  1. Run build on locally
npm run build
  1. Allow build files on .gitignore
!/public/build

*I add excalanation mark there. To allow public/build, which is files generated by Vite

Redeploy!

Notes: if you’re using something like sass, also check this out Solve unable to locate Vite file manifest sass

laravel