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

Laravel 9.19.0 with Vite on Windows #43110

Closed
olivier-perrier opened this issue Jul 9, 2022 · 2 comments
Closed

Laravel 9.19.0 with Vite on Windows #43110

olivier-perrier opened this issue Jul 9, 2022 · 2 comments

Comments

@olivier-perrier
Copy link

  • Laravel Version: 9.19.0
  • PHP Version: 8.0.19
  • Database Driver & Version: 10.4.24-MariaDB
  • node: v16.16.0
  • OS Windows 11 21H2

Description:

Laravel Vite server blanc page.
I tried to deploy last laravel 9.19.0 version including Vite following to steps below. The Vite server seems not working.

Steps To Reproduce:

Commands lines provided below :
laravel new breeze-test --git
cd breeze-test
composer require laravel/breeze
php artisan breeze:install vue
npm install
npm run dev

Web browser error message : DNS_PROBE_FINISHED_NXDOMAIN


Also tried to install via composer with the same result.

Does any Windows user has the same issue ?

@jessarcher
Copy link
Member

Hi @olivier-perrier, It is expected that the Vite dev server will show a blank screen when accessed directly (e.g. http://localhost:3000). You will still need to spin up a dev server for your Laravel project (e.g. php artisan serve or Laravel Sail) to access your Laravel application.

We have tried to make this clearer with laravel/vite-plugin#57 which will be in the next release.

@olivier-perrier
Copy link
Author

Thank you for your answer.
Accessing the dev server (via artisan serve over localhost:8000 for example) does not provide any auto reload of the pages when files are saved. I also tried with version 0.3.0 of vite-plugin. Is it normal ?

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