Skip to content

jose@6.2.18 fails in Node.js nightly 28.0.0-nightly20261126fa49b1361b #1244

Backlog

Description

@MikeMcC399

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: 3548ms

Assessment

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

Activity

  1. panva commented on Nov 26, 2026

    @panva
    Member

    So that's not jose failing, that's ts-blank-space

  2. MikeMcC399 commented on Nov 26, 2026

    @MikeMcC399
    MemberAuthor

    So that's not jose failing, that's ts-blank-space

    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.

    citgm just calls npm test. It doesn't differentiate whether a failure comes from the main code or from devDependencies used by the package.

  3. panva commented on Nov 26, 2026

    @panva
    Member

    @joyeecheung can you help us reach the folk at bloomberg for ts-blank-space?

  4. MikeMcC399 commented on Nov 26, 2026

    @MikeMcC399
    MemberAuthor

    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.

  5. MikeMcC399 commented on Nov 26, 2026

    @MikeMcC399
    MemberAuthor

    I've added issue bloomberg/ts-blank-space#86 so that the maintainers are informed.

  6. MikeMcC399 commented on Nov 27, 2026

    @MikeMcC399
    MemberAuthor

    It appears that ts-blank-space already 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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions