Skip to content

https://nodejs.org/api/sqlite.html incorrectly says node:sqlite was added 22.5.0 #60601

@matthiasg

Description

@matthiasg

When installing node 22.5.0 and 22.5.1 i realized that node:sqlite was not actually part of it. At least not in the ARM mac builds.

> node -v
v22.5.0
> node
Welcome to Node.js v22.5.0.
Type ".help" for more information.
> require('node:sqlite')
Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
    at Module._load (node:internal/modules/cjs/loader:1038:13)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}

I realized that as the Zed project tried to start a copilot language server as such:

> "/Users/mgt/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node" -v
v22.5.1
> "/Users/mgt/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node"
Welcome to Node.js v22.5.1.
Type ".help" for more information.
> s = require('node:sqlite')
Uncaught Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:sqlite
    at Module._load (node:internal/modules/cjs/loader:1038:13)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16) {
  code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}

and that version does not have node:sqlite yet. I then installed. Version 24.8 seems to have it at least. Not sure when it was added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions