laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.96k stars 812 forks source link

Fresh install of laravel new app with jetstream not building with Vite #1083

Closed ianyxtan closed 2 years ago

ianyxtan commented 2 years ago

Description:

Fresh install of laravel new app with jetstream not building with Vite

Steps To Reproduce:

  1. Create new laravel app using laravel/installer:
    
    cd ~/sites
    laravel new signin

2. Install jetstream:

cd signin composer require laravel/jetstream


3. Install Inertia stack:

php artisan jetstream:install inertia npm install


4. Add database:

touch database/database.sqlite


5. Update .env file:

6. Run Vite:

npm run dev



7. Visit http://localhost:3000 but throws 404 error

Repo: https://github.com/ianyxtan/signin 
jessarcher commented 2 years ago

Hi @ianyxtan, http://localhost:3000 is Vite's development server that provides hot module replacement for your application. You will still need to run a local development server for your application, using php artisan serve, Laravel Sail, or Laravel Valet.

We have a PR for the Laravel plugin that should make the clearer in the future.