Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node 22LTS and punycode #598

Open
pelikhan opened this issue Nov 8, 2024 · 1 comment
Open

node 22LTS and punycode #598

pelikhan opened this issue Nov 8, 2024 · 1 comment

Comments

@pelikhan
Copy link

pelikhan commented Nov 8, 2024

It seems that the SDK has a dep on a deprecated API in node 22LTS. This is the error message I get

(node:16917) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

which after turning tracing looks like it's coming from whatwg-url

@pelikhan ➜ /workspaces/genaiscript (dedup) $ node --trace-deprecation packages/cli/built/genaiscript.cjs run poem
(node:17473) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
    at loadBuiltinModule (node:internal/modules/helpers:114:7)
    at Function._load (node:internal/modules/cjs/loader:1100:17)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at ../../node_modules/whatwg-url/lib/url-state-machine.js (/workspaces/genaiscript/packages/cli/built/genaiscript.cjs:14681:20)

which seems to be coming from the SDK

@pelikhan ➜ /workspaces/genaiscript (dedup) $ npm ls whatwg-url└─┬ [email protected] -> ./packages/core
  └─┬ @anthropic-ai/[email protected]
    └─┬ [email protected]
      └── [email protected]

I might be wrong.

@RobertCraigie RobertCraigie changed the title node 22LTS and punnycode node 22LTS and punycode Nov 18, 2024
@jacksondc
Copy link

I'm affected by this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants