lemmy-ui
lemmy-ui copied to clipboard
Fix ARM build
- https://github.com/LemmyNet/lemmy-ui/pull/3680
- https://github.com/LemmyNet/lemmy-ui/pull/3684
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.
We don't have any arm machine, and qemu is failing: https://woodpecker.join-lemmy.org/repos/135/pipeline/8474/3#L577
@paulo-roger You need to run git submodule init && git submodule update first to get the translations. After that the build will work.