Vite manifest not found 🐘 PHP

Laravel: Vite manifest not found at: public/build/manifest.json

Laravel’s @vite directive can’t find the compiled asset manifest because assets weren’t built.

Seen on: PHP

Meaning

In production Laravel reads public/build/manifest.json, created by npm run build. Deployments that skip the build step (or don’t upload public/build) fail with this error.

Common causes

  • npm run build not run on deploy
  • public/build ignored by git and not uploaded
  • Dev server not running locally (npm run dev)

⚡ Quick fix

  1. Run npm ci && npm run build during deployment
  2. Upload public/build to the server
  3. Locally, start npm run dev

Detailed fix by platform

PHP

  1. For shared hosting without Node, build locally and upload public/build

How to diagnose

  1. File — Does public/build/manifest.json exist?
  2. Mode — Production or local dev server?

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.