Error Laravel: Vite manifest not found at: C:\xampp64\htdocs\laravel-9-eccommerce21\public\build/manifest.json
According to the official Laravel documentation of installation Laravel Breeze here, after you have executed composer require laravel/breeze --dev
and php artisan breeze:install vue
(if you are using vue or can specify other desired stack), you need to execute these commands as well:
npm install
npm run dev
php artisan migrate
But in my case, after I execute npm install && npm run dev
, I am getting this error below:
This error in the terminal also will result in the same exception saying the Vite manifest not found. The error mentioned that they can't find 'laravel-vite-plugin/inertia-helpers'. To fix this, you can follow this guide which will ask you to execute these commands below:
npm install --save-dev vite laravel-vite-plugin
npm install --save-dev @vitejs/plugin-vue
You also need to update your package.json
:
"scripts": {
"dev": "vite",
"build": "vite build"
}
Finally, you can trigger this command below to build Vite and create the manifest file.
npm run build
Tidak ada komentar: