Skip to content

fix(affine): update command override to fix startup on v0.26.0#10073

Draft
GXiang314 wants to merge 5 commits intoruntipi:masterfrom
GXiang314:master
Draft

fix(affine): update command override to fix startup on v0.26.0#10073
GXiang314 wants to merge 5 commits intoruntipi:masterfrom
GXiang314:master

Conversation

@GXiang314
Copy link
Copy Markdown
Contributor

What was fixed?

This PR addresses a startup failure in the AFFiNE service when running via Docker Compose. Previously, the service would throw the following error and immediately shut down:

Node.js v22.22.0
node:internal/modules/cjs/loader:1386
  throw err;
  ^

Error: Cannot find module '/app/scripts/self-host-predeploy'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

What was changed?

Overrode the command in docker-compose.yml to execute yarn predeploy, which allows the service to start correctly.

ref: [Bug]: Cannot find module '/app/scripts/self-host-predeploy.js' #14382

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 8, 2026

Thank you for your contribution!

Unfortunately, this repository is in maintenance mode and we are no longer accepting pull requests.

We suggest you to use one of the community maintained stores or to create your own. Check out the Documentation

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.

3 participants