In Laravel 9, Vite is used as the default tool bundler. To avoid the Vite manifest not found error, you need to install npm and run the following commands:
npm install
npm run dev
If you see the package.json
file, you must use Vite runtime commands such as npm run dev
or npm run build
. Both commands are available.
To solve the “Vite manifest not found” error, run the following command:
npm run dev
# OR
npm run build
Note: Use two terminals to avoid the Vite manifest error.
Clear Cache
Laravel sometimes caches configuration files. Try running the following command to clear the configuration cache.
php artisan config:clear