vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.12k stars 6.14k forks source link

Vite manifest not found on server #12092

Closed abdorrahmani closed 1 year ago

abdorrahmani commented 1 year ago

Describe the bug

When I take the build from the Laravel project and put it on the server it gives me the following error: Vite manifest not found at: /home/***/domains/***.com/public/build/manifest.json And the only solution I found is to create a manifest file in the path as it said. But Laravel sometimes confuses public_html files with the public.

Does anyone know a solution? There was nothing in vite.config.js to change the directory.

Reproduction

npm create vite@latest

Steps to reproduce

  1. npm install
  2. npm run build
  3. zip all file
  4. extract in server

System Info

npm -v : 8.19.3
node -v: v19.2.0

Used Package Manager

npm

Logs

No response

Validations

bluwy commented 1 year ago

This looks like a Laravel Vite integration issue. Please report there instead.