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

Error Install new Jetstream with Livewire #1556

Closed
RitsukiKagerou opened this issue Dec 20, 2024 · 3 comments
Closed

Error Install new Jetstream with Livewire #1556

RitsukiKagerou opened this issue Dec 20, 2024 · 3 comments

Comments

@RitsukiKagerou
Copy link

Jetstream Version

5.3.4

Jetstream Stack

Livewire

Laravel Version

11.36.1

PHP Version

8.3.15

Database Driver & Version

No response

Description

Follow the installation steps from the official Laravel Jetstream documentation: https://jetstream.laravel.com/installation.html

image

Steps To Reproduce

composer create-project laravel/laravel example-app
cd example-app
composer require laravel/jetstream

The error occurs when running:

php artisan jetstream:install livewire
@RitsukiKagerou
Copy link
Author

Looks like the problem from vite : vitejs/vite#19018

@SiddharthPant
Copy link

Yes, esbuild to be exact, its v0.24.1 is breaking vite. Maintainers are working on a fix. Till then temporary workaround is to either downgrade manually esbuild to v0.24.0 so npm i -D [email protected] or else provide override in package.json like this:

{
  "name": "Your app",
  "devDependencies": {
    "vite": "^6.0.4",
  },
  "overrides": {
    "vite": {
      "esbuild": "0.24.0"
    }
  },
}

All Laravel new starter kits installs are failing today because of this regression.

@RitsukiKagerou
Copy link
Author

Solved, vite 6.0.5 with esbuild regression (pin to 0.24.0)
https://github.com/vitejs/vite/releases/tag/v6.0.5

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