Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Self-hosted: ​Cannot find module prelude #9895

Open
1 task done
ecker00 opened this issue Jan 25, 2025 · 0 comments
Open
1 task done

Self-hosted: ​Cannot find module prelude #9895

ecker00 opened this issue Jan 25, 2025 · 0 comments

Comments

@ecker00
Copy link

ecker00 commented Jan 25, 2025

What happened?

When starting self-hosted AFFiNE I get error after the Migration task is done:
Cannot find module '/app/dist/prelude' imported from /app/dist/index.js

I've a new clean setup with docker and can't seem to get past this error.

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

Other

Are you self-hosting?

  • Yes

Relevant log output

affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] UserModule dependencies initialized +0ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] DocStorageModule dependencies initialized +1ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] SyncModule dependencies initialized +0ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] DocRendererModule dependencies initialized +0ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] AuthModule dependencies initialized +1ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:32 PM     LOG [InstanceLoader] WorkspaceModule dependencies initialized +0ms
affine-app        | [Nest] 142  - 01/25/2025, 10:39:33 PM     LOG [RunCommand] Done 0 migrations
affine-app        | Done in 2.87s.
affine-app        | node:internal/modules/esm/resolve:265
affine-app        |     throw new ERR_MODULE_NOT_FOUND(
affine-app        |           ^
affine-app        | 
affine-app        | Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/dist/prelude' imported from /app/dist/index.js
affine-app        |     at finalizeResolution (node:internal/modules/esm/resolve:265:11)
affine-app        |     at moduleResolve (node:internal/modules/esm/resolve:933:10)
affine-app        |     at defaultResolve (node:internal/modules/esm/resolve:1169:11)
affine-app        |     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)
affine-app        |     at ModuleLoader.resolve (node:internal/modules/esm/loader:510:25)
affine-app        |     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
affine-app        |     at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:96:40)
affine-app        |     at link (node:internal/modules/esm/module_job:95:36) {
affine-app        |   code: 'ERR_MODULE_NOT_FOUND',
affine-app        |   url: 'file:///app/dist/prelude'
affine-app        | }
affine-app        | 
affine-app        | Node.js v20.18.11
affine-app exited with code 1

Anything else?

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant