{"id":443,"hash":"e523e0b5c3cdde948b6ef40220386329e3c658e7fd6f35803ac82946fe017fb1","pattern":"Vite manifest not found","full_message":"I'm working on a project that is using laravel 9 and Vite with  laravel-vite,\n\nIn the Dev environment everything works fine, but in production on the cPanel server I have the following issue:\n\nVite manifest not found at: /home/???????/cart_shop/public/build/manifest.json\n\n# With \n\nMissing Vite Manifest File\nDid you forget to run `npm install && npm run dev`?\n\nI tried to solve the problem but nothing work, I need to change the public folder and the sup folder build file place  from vite.config.js but I don't find the way to do that.\n\nNote that: the file sequence is changed in cPanel shared server from\n\n- home\n    - public_html\n        - cart_shop\n           - Root\n           - public\n           - etc\n\nTo\n\n- home\n    - public_html\n       - public files and folders  // I changed the index URLs too.\n- cart_shop\n    - Root\n    - etc\n\nmy vite.config.js config is like:\n\nimport { defineConfig } from 'vite';\nimport laravel from 'laravel-vite-plugin';\nimport vue from '@vitejs/plugin-vue';\n\nexport default defineConfig({\n    plugins: [\n        laravel({\n            input: 'resources/js/app.js',\n        }),\n        vue({\n            template: {\n                transformAssetUrls: {\n                    base: null,\n                    includeAbsolute: false,\n                },\n            },\n        }),\n    ],\n});","ecosystem":"npm","package_name":"php","package_version":null,"solution":"I had the same issue only because of node version. I upgraded to the latest version and it's working properly.\n\nFor Ubuntu use n module from npm in order to upgrade node:\n\nsudo npm cache clean -f\nsudo npm install -g n\nsudo n stable\n\nTo upgrade to latest version (and not current stable) version, you can use:\n\nsudo n latest\n\nYou may need also to Fix PATH:\n\n  sudo apt-get install --reinstall nodejs-legacy     # fix /usr/bin/node\n\nTo undo:\n\n  sudo n rm 6.0.0     # replace number with version of Node that was installed\n  sudo npm uninstall -g n\n\nYou may need to restart your terminal to see the updated node version.\n\nFound in Ask Ubuntu","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/73045616/vite-manifest-not-found","votes":65,"created_at":"2026-04-19T04:51:09.959806+00:00","updated_at":"2026-04-19T04:51:09.959806+00:00"}