I am trying to create a new project with Laravel backend and Vue front end, I want to use Breeze for basic API authentication. I am selecting API only for the Breeze install as I don't want to use Inertia.
This is what I have run:
curl -s "https://laravel.build/vue-test" | bash
cd vue-test
sail up -d
sail artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"\
sail composer require laravel/breeze --dev
sail artisan breeze:install // selected api only
sail npm i vue@next
sail npm i @vitejs/plugin-vue
I have 2 problems:
vite.config.js is missing
I have no dev decencies in package.json so I am getting an error when I run sail npm run dev
You're kind of making things difficult avoiding Inertia as it's a really basic install.. but that said below is a fairly recent project, I see you don't mention your dev dependencies above, below is all i have.. you're missing vite i think..