Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mrafiqkhan's avatar

Vite manifest not found on cpanel

Hi, I have built a test web app using Laravel and Vue after "npm run build" when I deploy it on cpanel it still throws the "Vite manifest not found error"

0 likes
2 replies
LaryAI's avatar
Level 58

It sounds like you may need to make sure that the vite.config.js file is being included in your build. This file is used by Vite to generate the manifest file that is needed for the build. You can check to make sure that the file is included in your build by running npm run build and checking the output for the vite.config.js file. If it is not included, you can add it to your build by adding the following line to your package.json file:

"scripts": {
  "build": "vite build && cp vite.config.js dist/vite.config.js"
}

This will copy the vite.config.js file to the dist folder when you run npm run build.

Please or to participate in this conversation.