Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ianyxtan opened this issue Jul 5, 2022 · 1 comment
Closed

Comments

@ianyxtan
Copy link

ianyxtan commented Jul 5, 2022

  • Jetstream Version: 2.9.0
  • Jetstream Stack: Inertia
  • Uses Teams: no
  • Laravel Version: 9.19
  • PHP Version: 8.1.7
  • Database Driver & Version: sqlite3

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

  1. Install jetstream:
cd signin
composer require laravel/jetstream
  1. Install Inertia stack:
php artisan jetstream:install inertia
npm install 
  1. Add database:
touch database/database.sqlite
  1. Update .env file:
- DB_CONNECTION=mysql
+DB_CONNECTION=sqlite
...
DB_DATABASE=/home/*username*/sites/signin/database/database.sqlite
 
  1. Run Vite:
npm run dev
  1. Visit http://localhost:3000 but throws 404 error

Repo: https://github.com/ianyxtan/signin

@jessarcher
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants