Skip to content

ERROR (node:8) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. #16023

@betimer

Description

@betimer

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/aws-serverless

SDK Version

9.12.0

Framework Version

Node 22

Link to Sentry event

No response

Reproduction Example/SDK Setup

Error log:

ERROR	(node:8) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:7:10
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
    at loadBuiltinModule (node:internal/modules/helpers:110:7)
    at Function._load (node:internal/modules/cjs/loader:1080:17)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Module.<anonymous> (node:internal/modules/cjs/loader:1311:12)
    at Module.o (/node_modules/require-in-the-middle/index.js:256:27)
    at Module.CS._require.eo.require (/node_modules/require-in-the-middle/index.js:181:27)

Steps to Reproduce

Package that @sentry/aws-serverless used

PS C:\repos\serverless-backend> npm ls require-in-the-middle
[email protected] C:\repos\serverless-backend
└─┬ @sentry/[email protected]
  └─┬ @opentelemetry/[email protected]
    └── [email protected]

Expected Result

Fix the package issue for @opentelemetry/instrumentation

Actual Result

Using deprecated function and show warnings in AWS Lambda

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions