fern icon indicating copy to clipboard operation
fern copied to clipboard

[Bug] Deprecation warning when initializing fern

Open atupem opened this issue 1 year ago • 4 comments

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

atupem avatar Jan 22 '24 22:01 atupem

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

minaelee avatar Jan 23 '24 01:01 minaelee

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

dannysheridan avatar Jan 25 '24 00:01 dannysheridan

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

HLFH avatar Aug 19 '24 10:08 HLFH

I am also seeing this

Screenshot 2024-08-26 at 11 39 58 AM

Node version: v22.6.0 Fern version: 0.39.16

zachkirsch avatar Aug 26 '24 15:08 zachkirsch