Vite manifest not found at: C:\Users\HP\example-app\public\/build/manifest.json

Viewed 18180

When i install breeze package in laravel Vite manifest not found at: C:\Users\HP\example-app\public/build/manifest.json

1 Answers

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: enter image description here

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
Related