Repository navigation
Backlog
Description
SyntaxError: The requested module 'node:module' does not provide an export named 'register'
| Item | Status |
|---|---|
| npm package | https://www.npmjs.com/package/jose |
| npm status | active |
| last published | 6.2.18 Nov 18, 2026 |
| weekly downloads | 238,726,966 |
| repo location | https://github.com/panva/jose |
| repo last update to default branch | Nov 24, 2026 |
| repo status | active |
| repo CI status | runs in Node.js 20 & LTS |
| lookup - flaky | - |
| lookup - skip | <20 win32 |
| lookup tests release / HEAD | release |
| lookup maintainer 1 | panva |
Logs
Run node bin/citgm.js jose
info: starting | jose
info: lookup | jose
info: lookup-found | jose
info: jose lookup-replace | https://github.com/panva/jose/archive/v6.2.18.tar.gz
info: jose npm: | Downloading project: https://github.com/panva/jose/archive/v6.2.18.tar.gz
info: jose npm: | Project downloaded v6.2.18.tar.gz
info: jose npm: | npm install started
info: jose npm: | npm install successfully completed
info: jose npm: | test suite started
error: failure | The canary is dead:
error: failing module(s) |
error: module name: | jose
error: version: | 6.2.18
error: error: | The canary is dead:
error: error: | undefined
error: | added 213 packages in 2s
error: | Using Node.js v28.0.0-nightly20261126fa49b1361b
error: |
error: | file:///tmp/83754256/jose/node_modules/ts-blank-space/loader/register.js:1
error: | import { register } from "node:module";
error: | ^^^^^^^^
error: | SyntaxError: The requested module 'node:module' does not provide an export named 'register'
error: | at ModuleJobSync.instantiateSync (node:internal/modules/esm/module_job:512:19)
error: | at ModuleJobSync.run (node:internal/modules/esm/module_job:540:12)
error: | at node:internal/modules/esm/loader:539:42
error: |
error: | Node.js v28.0.0-nightly20261126fa49b1361b
error: done | The smoke test has failed.
info: duration | test duration: 3548msAssessment
Running npm test in a clone of https://github.com/panva/jose under Node.js 26.13.1 shows multiple warnings similar to:
(node:7669) [DEP0205] DeprecationWarning: `module.register()` is deprecated. Use `module.registerHooks()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)https://nodejs.org/docs/latest/api/deprecations.html#DEP0205 was changed to "Runtime deprecation" in v26.0.0
In Node.js 28.0.0-nightly20261126fa49b1361b, where PR nodejs/node#67090 was landed, module.register() is no longer available.
This can be expected to be backported to Node.js 27 (Alpha) at some point in time.
This first surfaced in citgm running in support of nodejs/node#67757
cc: @panva
Metadata
Metadata
Assignees
Labels
No labels
Activity
panva commentedon Nov 26, 2026
So that's not
josefailing, that's ts-blank-spaceMikeMcC399 commentedon Nov 26, 2026
Thanks for pin-pointing the source! Do you have any suggestions how to handle the issue with ts-blank-space? It's not urgent at the moment I don't think, but when Node.js moves into the current phase in April 2027 it will become more visible.
citgmjust callsnpm test. It doesn't differentiate whether a failure comes from the main code or fromdevDependenciesused by the package.panva commentedon Nov 26, 2026
@joyeecheung can you help us reach the folk at bloomberg for ts-blank-space?
MikeMcC399 commentedon Nov 26, 2026
Their CI https://github.com/bloomberg/ts-blank-space/blob/main/.github/workflows/ci.yml is not yet testing in Node.js 26, so they may not have noticed the https://nodejs.org/docs/latest/api/deprecations.html#DEP0205 runtime deprecation yet.
MikeMcC399 commentedon Nov 26, 2026
I've added issue bloomberg/ts-blank-space#86 so that the maintainers are informed.
MikeMcC399 commentedon Nov 27, 2026
It appears that
ts-blank-spacealready tried to fix the issue, however they don't appear to have tested it on Node.js 26 (or above), nor do they appear to have cut a new release which includes the fix. So at the moment the action is with bloomberg/ts-blank-space#86 to look at.Edit: they plan to fix it next week.