Skip to content

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite #214

Closed

Description

@tihomir-kit

Hi,

After doing this:

npm install -g @bradygaster/squad-cli
squad

I get this:

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ◆ squad> ▌                                                                                                                                                                                                                              │
│  Tab completes · ↑↓ history                                                                                                                                                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[CLI subprocess] node:internal/modules/esm/translators:356
[CLI subprocess]     throw new ERR_UNKNOWN_BUILTIN_MODULE(url);
[CLI subprocess]           ^
[CLI subprocess] Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
[CLI subprocess]     at ModuleLoader.builtinStrategy (node:internal/modules/esm/translators:356:11)
[CLI subprocess]     at #translate (node:internal/modules/esm/loader:437:12)
[CLI subprocess]     at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:484:27) {
[CLI subprocess]   code: 'ERR_UNKNOWN_BUILTIN_MODULE'
[CLI subprocess] }
[CLI subprocess] Node.js v22.12.0

If you need more info, let me know. I installed I think what was probably 0.5.4 a couple of days ago, saw that many things changed so thought I'd uprgade. The migration is kind of half-broken for me so I thought while waiting on #199 to be ready to just init from fresh on another project idea, and that's when I got this error above.

Activity

  1. tihomir-kit commented on Mar 6, 2026

    @tihomir-kit
    Author

    Upgrading Node from v22.12.0 to v24.14.0 helped to get rid of that issue. However, I'm now no longer sure, based on this, I'm under the impression that the squad no longer needs to be started from copilot cli, but just from my terminal if I rune squad, that should be enough?

    I'm asking because when I type in anything, even /help, the terminal kind of flickers and nothing happens. It seems to be working fine through copilot cli though. This is what it looks like running /help for example, it's as if nothing had happened:

    Image
  2. added 2 commits that reference this issue on Mar 7, 2026
  3. bradygaster commented on Mar 7, 2026

    @bradygaster
    Collaborator

    Fixed by PR #234 (merged to dev).

  4. bradygaster commented on Mar 7, 2026

    @bradygaster
    Collaborator

    Sorry you hit that node:sqlite import error, @tihomir-kit! Node.js built-in module resolution is tricky, and we've got that fixed now. Thanks for the detailed reproduction and environment info—that helped us track it down fast. Upgrade and you should be good! 🚀

    — McManus 📝, on behalf of the Squad

  5. added 3 commits that reference this issue on Mar 9, 2026
    f9e6cc0
    76b5a97
    8f6647e
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

    release:nextTargeted for next release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions