Skip to content

fix(nix): legacy-peer-deps for react-ui flake build - #11870

Open
leilei3167 wants to merge 1 commit into
mudler:masterfrom
leilei3167:fix/flake-hono-legacy-peer-deps-11804
Open

fix(nix): legacy-peer-deps for react-ui flake build#11870
leilei3167 wants to merge 1 commit into
mudler:masterfrom
leilei3167:fix/flake-hono-legacy-peer-deps-11804

Conversation

@leilei3167

Copy link
Copy Markdown
Contributor

Summary

Building LocalAI from the flake currently fails in the react-ui package with EOVERRIDE on hono.

Root cause is the same-version hono direct dep plus overrides entry; the nix lock importer turns the override into a store path that conflicts.

This PR only touches flake.nix: set npmFlags to legacy-peer-deps on the react-ui buildNpmPackage (same workaround the failing drv log suggests). Left package.json and bun.lock alone so we do not collide with open #11633.

Fixes #11804

cc @mudler — small flake-only path if this looks right.

Test plan

importNpmLock turns the same-version hono override into a file: tarball
that conflicts with the direct dependency (EOVERRIDE). Pass
--legacy-peer-deps so the flake build can proceed without
touching package.json (open mudler#11633).

Fixes mudler#11804

Signed-off-by: lei_lei <96427312+leilei3167@users.noreply.github.com>
@leilei3167
leilei3167 force-pushed the fix/flake-hono-legacy-peer-deps-11804 branch from 8ed368c to 7be1041 Compare September 4, 2026 01:40
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

Successfully merging this pull request may close these issues.

Flake build fail

1 participant