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

vite v5.0.11 building for production failed #281

Closed
tamer73 opened this issue Jan 15, 2024 · 7 comments
Closed

vite v5.0.11 building for production failed #281

tamer73 opened this issue Jan 15, 2024 · 7 comments
Assignees

Comments

@tamer73
Copy link

tamer73 commented Jan 15, 2024

Vite Plugin Version

1.0.1

Laravel Version

10.10

Node Version

18.8

NPM Version

8.1.8

Operating System

Linux

OS Version

5.15.114-gardenlinux-cloud-amd64 #1 SMP Debian 5.15.114-0gardenlinux3 (2023-06-01) x86_64 GNU/Linux

Web browser and version

120.0.6099.216

Running in Sail?

No

Description

vite v5.0.11 building for production failed while installing Laravel Jetstream.

Source: https://jetstream.laravel.com/installation.html#install-jetstream-with-livewire

Steps To Reproduce

Strictly following the installation guide from:
https://jetstream.laravel.com/installation.html

until:
php artisan jetstream:install livewire --teams

produces the given issue

@tamer73
Copy link
Author

tamer73 commented Jan 15, 2024

Which further info do you need? Node.js is installed over web management tool from provider Mittwald

@driesvints
Copy link
Member

@tamer73 waiting until @jessarcher has time to look into this.

@timacdonald
Copy link
Member

timacdonald commented Jan 16, 2024

@tamer73 I've just run the following installation steps:

composer create-project laravel/laravel example-app
cd example-app
composer require laravel/jetstream
php artisan jetstream:install livewire --teams

And everything works as expected. Could you please provide the error message and the exact steps required to produce the error in an isolated way?

@jessarcher
Copy link
Member

@timacdonald Error message is at laravel/jetstream#1430. Doesn't look like it's related to this plugin. I'm assuming it's Rollup as it's the only thing I'm aware of in the stack that seems to use any Rust.

@timacdonald
Copy link
Member

Ahh, I see.

In that case I will close this. This plugin is miles away from Rust, so if there is a bug it seems like it is upstream.

@tamer73
Copy link
Author

tamer73 commented Jan 17, 2024

Seems like missing libraries from my provider. I will inform you as soon i get more infos

@StrahinjaG
Copy link

If anyone else is searching for a solution, I refer to this thread: rollup/rollup#5304. After a fresh installation of Laravel Breeze with Inertia, I encountered the same error message at Mittwald. I added

"resolutions": { "rollup": "npm:@rollup/wasm-node" }

to the end of my package.json and ran yarn install. After that, npm run build worked. I hope this helps someone.

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

No branches or pull requests

5 participants