`laravel dev` fails on Android ARM64 (Termux) due to missing `vite-plus` native binding

Open
#137 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, laravel, node.js, rust
Domain
backend, devtools

Research direction

Start by reading the laravel dev process setup and the dev:vite script that invokes vp dev; the issue does not name their files. Check how the Vite process handles unsupported Android ARM64 bindings and how concurrently propagates its failure. Confirm the dev session can run on Termux without terminating the server and queue worker.

Written by the indexing model from the issue text.

Description

When running laravel dev on Android (aarch64 via Termux), the Rust server and queue worker start properly, but npm run dev:vite (vp dev) crashes immediately because vite-plus does not publish a native Android ARM64 or wasm32-wasi binding. Since concurrently uses --kill-others, this terminates the entire dev session.

Steps to Reproduce
  1. Create a new Laravel Rust app (laravel new my-app --rust) or clone laravel/rust in Termux on an aarch64 Android device.
  2. Run laravel dev.
Error Output
[vite] > dev:vite
[vite] > vp dev
[vite]
[vite] Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com). Please try `npm i` again after removing both package-lock.json and node_modules directory.
[vite]   cause: Error: Cannot find module '@voidzero-dev/vite-plus-wasm32-wasi'
[vite]   cause: Error: Cannot find module '@voidzero-dev/vite-plus-android-arm64'
[vite] npm run dev:vite exited with code 1
--> Sending SIGTERM to other processes..
[server] npm run dev:server exited with code 143
[queue] npm run dev:queue exited with code 143
Environment
  • OS / Platform: Android (aarch64 / Termux)
  • Node.js: v26.13.1
Dominant language
Rust
Stars
2.2k
Forks
105
Avg merge
7h 19m
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from laravel/rust

All issues in laravel/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.