Skip to content

SQLite module not found during setup #306

Description

@MrDrMcCoy

Short description

Neither npx nor bun can find node:sqlite

What happened?

The installation command gave the following output on my Debian 13 host:

❯ npx @cortexkit/aft@latest setup
node:internal/modules/esm/translators:391
    throw new ERR_UNKNOWN_BUILTIN_MODULE(url);
          ^

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
    at ModuleLoader.builtinStrategy (node:internal/modules/esm/translators:391:11)
    at #translate (node:internal/modules/esm/loader:431:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:478:27) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}

Node.js v20.19.2

Essentially the same error with bunx instead:

❯ bunx @cortexkit/aft@latest setup
node:internal/modules/esm/translators:391
    throw new ERR_UNKNOWN_BUILTIN_MODULE(url);
          ^

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
    at ModuleLoader.builtinStrategy (node:internal/modules/esm/translators:391:11)
    at #translate (node:internal/modules/esm/loader:431:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:478:27) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}

Node.js v20.19.2

Diagnostics

❯ bunx @cortexkit/aft-opencode@latest doctor --issue
error: could not determine executable to run for package @cortexkit/aft-opencode

Plugin version

No response

AFT binary version

No response

Platform

linux x64 (Debian 13)

Log output (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions