fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.65k stars 144 forks source link

[Bug] Deprecation warning when initializing fern #2716

Open atupem opened 9 months ago

atupem commented 9 months ago

Describe the bug

When running fern init, I see the following warning:

[DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

To reproduce

Steps to reproduce the behavior:

  1. Run the command fern init
  2. See error

Expected behavior

No deprecation warnings

Version

Fern Version: 0.16.36

minaelee commented 9 months ago

Reproducible with Node 21 punycode deprecated in Node 21 Node LTS (20.11.0) will not show deprecation warning See: https://github.com/nodejs/node/pull/47202

dannysheridan commented 9 months ago

@atupem if you downgrade your Node version to v20, does this get rid of the warning?

HLFH commented 2 months ago

I currently have Node v22.6.0 and I still have this warning.

And I still have it with a downgrade to node@20 with Homebrew.

fern --version
(node:15952) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
0.39.10
➜  ~ node --version
v20.16.0
zachkirsch commented 1 month ago

I am also seeing this

Screenshot 2024-08-26 at 11 39 58 AM

Node version: v22.6.0 Fern version: 0.39.16