Skip to content

Node 26 - DeprecationWarning: module.register() is deprecated. #20810

Description

@luc122c

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

10.52.0

Framework Version

4.4.5

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/luc122c/minimal-nuxt-with-sentry

Steps to Reproduce

  1. Ensure you are running Node 26 (current)
  2. Install the project dependencies: npm install
  3. Run the Dev server with tracing: node --trace-deprecation node_modules/nuxt/bin/nuxt.mjs dev

Expected Result

No deprecation notice

Actual Result

 node -v
v26.0.0

 node --trace-deprecation node_modules/nuxt/bin/nuxt.mjs dev
│                                                                   7:38:10 PM
●  Nuxt 4.4.5 (with Nitro 2.13.4, Vite 7.3.3 and Vue 3.5.34)
                                                                    7:38:10 PM
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

  ➜ DevTools: press Shift + Option + D in the browser (v3.2.4)      7:38:10 PM

✔ Vite client built in 15ms                                        7:38:11 PM
✔ Vite server built in 14ms                                        7:38:11 PM
✔ Nuxt Nitro server built in 305ms                           nitro 7:38:11 PM
ℹ Vite server warmed up in 0ms                                     7:38:11 PM
ℹ Vite client warmed up in 1ms                                     7:38:11 PM
[7:38:11 PM]  ERROR  (node:35605) [DEP0205] DeprecationWarning: module.register() is deprecated. Use module.registerHooks() instead.
    at node:internal/util:129:11
    at Module.register (node:internal/modules/esm/loader:969:3)
    at initializeEsmLoader (file:///Users/luc122c/Dev/sentry-deprecation-warning/node_modules/@sentry/node-core/build/esm/sdk/esmLoader.js:23:20)
    at _init (file:///Users/luc122c/Dev/sentry-deprecation-warning/node_modules/@sentry/node-core/build/esm/sdk/index.js:91:5)
    at init (file:///Users/luc122c/Dev/sentry-deprecation-warning/node_modules/@sentry/node-core/build/esm/sdk/index.js:59:10)
    at _init (file:///Users/luc122c/Dev/sentry-deprecation-warning/node_modules/@sentry/node/build/esm/sdk/index.js:48:18)
    at init (file:///Users/luc122c/Dev/sentry-deprecation-warning/node_modules/@sentry/node/build/esm/sdk/index.js:36:10)
    at init (file:///Users/luc122c/Dev/sentry-deprecation-warning/.nuxt/dev/sentry.server.config.mjs:69:18)
    at file:///Users/luc122c/Dev/sentry-deprecation-warning/.nuxt/dev/sentry.server.config.mjs:165:1
    at ModuleJob.run (node:internal/modules/esm/module_job:437:25)

Additional Context

Since the trace points to @sentry/node-core/build/esm/sdk/esmLoader.js:23:20 it is likely this is in other packages, not just Nuxt.

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions