Skip to content

[Bug]: The API Server won't start and throws an error #106

@TSlashDreamy

Description

@TSlashDreamy

Describe the bug

When trying to start the API Server, it throws an error: error: Cannot find module './cjs/index.cjs' from ''

$ bun run tools/src/index.ts dev server
INFO [2026-02-12 20:07:15]: (CLI): Executing command "dev"
INFO [2026-02-12 20:07:15]: (CLI): Starting server service...
$ bun tsx watch --env-file=../env/.env.local ./src/index.ts
error: Cannot find module './cjs/index.cjs' from ''

To Reproduce

Basically following the documentation steps.

  1. Install the latest Node.js (LTS) and Bun.
  2. Clone the repo.
  3. Install packages: cd lifeforge && bun install --linker isolated.
  4. Configure env/.env.local.
  5. Initialize DB: bun run forge db init.
  6. Start the Pocketbase instance: bun run forge dev db.
  7. Start the API Server: bun run forge dev server.

Expected behavior

The API Server should start and we should see an output like in docs

Screenshots

Image

Operating System

macOS

Browser

Safari

Browser Version

Version 26.2 (21623.1.14.11.9)

Device (if mobile)

No response

Additional context

After DB initialization, users collection is empty. (I hope it should be like this)

Bun: v1.3.9 (macOS x64).
Node: v24.13.1.
NPM: 11.8.0.
NVM: 0.40.3.
Pocketbase: 0.35.0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginfrastructureStuff related to LifeForge's core system architecture

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions