Solução – Erro ao abrir Projetos que utilizam o VITE – Vite manifest not found at: C:\Users\HP\example-app\public\/build/manifest.json [closed]Erro ao abrir Projetos que utilizam o VITE

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

Fonte Original: https://stackoverflow.com/questions/72798465/vite-manifest-not-found-at-c-users-hp-example-app-public-build-manifest-json

Please follow and like us:
Pin Share

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

RSS
Follow by Email
WP Radio
WP Radio
OFFLINE LIVE