lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Fix ARM build

Open Nutomic opened this issue 1 month ago • 3 comments

  • https://github.com/LemmyNet/lemmy-ui/pull/3680
  • https://github.com/LemmyNet/lemmy-ui/pull/3684

Nutomic avatar Dec 09 '25 09:12 Nutomic

Hi! I have tried building in my arm server and I get the following:

 => ERROR [lemmy-ui builder 15/19] RUN   --mount=type=cache,target=/root/.local/share/pnpm/store   pnpm  1.9s
------
 > [lemmy-ui builder 15/19] RUN   --mount=type=cache,target=/root/.local/share/pnpm/store   pnpm prebuild:prod:
0.663
0.663 > [email protected] prebuild:prod /usr/src/app
0.663 > pnpm clean && node generate_translations.js
0.663
1.111
1.111 > [email protected] clean /usr/src/app
1.111 > pnpm rimraf dist
1.111
1.858 /usr/src/app/generate_translations.js:8
1.858   files.forEach(filename => {
1.858         ^
1.858
1.858 TypeError: Cannot read properties of undefined (reading 'forEach')
1.858     at /usr/src/app/generate_translations.js:8:9
1.858     at FSReqCallback.oncomplete (node:fs:180:23)
1.858
1.858 Node.js v25.2.1
1.878  ELIFECYCLE  Command failed with exit code 1.
------
failed to solve: process "/bin/sh -c pnpm prebuild:prod" did not complete successfully: exit code: 1

Nevermind, I was missing the translations submodule, locally builded just fine on Arm.

paulo-roger avatar Dec 11 '25 18:12 paulo-roger

We don't have any arm machine, and qemu is failing: https://woodpecker.join-lemmy.org/repos/135/pipeline/8474/3#L577

dessalines avatar Dec 11 '25 19:12 dessalines

@paulo-roger You need to run git submodule init && git submodule update first to get the translations. After that the build will work.

Nutomic avatar Dec 15 '25 08:12 Nutomic