"pnpm run build" stalling or failing
What happened? (Please give us a brief description of what happened.) I've been following the documentation in order to build my server, yet when I run the command "pnpm run build," one component either takes such a long time to install that SSH disconnects before it ever completes or that the install fails. Specifically, the part that states "packages/frontend build$ vite build" completely stalls, sometimes with the error messages "ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL," "Exit status 137," and "Command failed with exit code 1."
What did you expect to happen? (Please give us a brief description of what you expected to happen.) I expected this part of the command to succeed, so I can proceed into the other steps of installing Sharkey.
Version (What version of Sharkey is your instance running? You can find this by clicking your instance's logo at the top left and then clicking instance information.) I am still installing Sharkey right now.
Instance (What instance of Sharkey are you using?) I am trying to create https://limepeepers.perchinup.top
What type of issue is this? (If this happens on your device and has to do with the user interface, it's client-side. If this happens on either with the API or the backend, or you got a server-side error in the client, it's server-side.) It's an issue with installing Sharkey.
How do you deploy Sharkey on your server? (Server-side issues only) I am deploying Sharkey on a VPS manually.
What operating system are you using? (Server-side issues only) I am using Debian 12.
Relevant log output (Please copy and paste any relevant log output. You can find your log by inspecting the page, and going to the "console" tab. This will be automatically formatted into code, so no need for backticks.)
sharkey@Poppyweb:~/Sharkey$ pnpm run build
> sharkey@2023.12.1 build /home/sharkey/Sharkey
> pnpm build-pre && pnpm -r build && pnpm build-assets
> sharkey@2023.12.1 build-pre /home/sharkey/Sharkey
> node ./scripts/build-pre.js
Scope: 6 of 7 workspace projects
packages/misskey-js build$ tsc
└─ Done in 1m 3.5s
packages/megalodon build$ tsc -p ./
└─ Done in 1m 11.7s
packages/backend build$ swc src -d built -D
│ Successfully compiled: 809 files, copied 26 files with swc (811.22ms)
└─ Done in 8.2s
packages/frontend build$ vite build
│ vite v5.0.10 building for production...
│ transforming...
│ [plugin:vite:esbuild] The "??" operator here will always return the left operand
│ 28 | return (_openBlock(), _createBlock(_Suspense, null, {
│ 29 | fallback: _withCtx(() => [
│ 30 | (!_ctx.inline ?? true)
│ | ^
│ 31 | ? (_openBlock(), _createBlock(MkLoading, { key: 0 }))
│ 32 | : _createCommentVNode("", true)
│ Killed
└─ Failed in 16m 20.6s at /home/sharkey/Sharkey/packages/frontend
packages/sw build$ node build.js
│ (node:2996438) ExperimentalWarning: Importing JSON modules is an experimental feature and…
│ (Use `node --trace-warnings ...` to show where the warning was created)
│ Starting SW building...
│ done
└─ Done in 6.4s
/home/sharkey/Sharkey/packages/frontend:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL frontend@ build: `vite build`
Exit status 137
ELIFECYCLE Command failed with exit code 1.
Contribution Guidelines By submitting this issue, you agree to follow our Contribution Guidelines
- I agree to follow this project's Contribution Guidelines
- I have searched the issue tracker for similar issues, and this is not a duplicate.