Open cduff opened 2 days ago
This is not related to this package. See here https://github.com/yarnpkg/yarn/issues/9005
Thanks for your comment @jpainam, but I'm not sure how this relates to yarn
?
From what I can work out it's caused by @react-pdf/font
depending on cross-fetch
which has this issue - it relies on an old version of node-fetch
which causes the punycode
deprecation warning. I tested the latest version of node-fetch
and it no longer causes the punycode
warning.
Unfortunately, it looks like the latest version of cross-fetch
(v4.0.0) still has this issue as it still depends on an old version (v2.7.0) of node-fetch
.
So, options for @react-pdf/font
would be to either:
cross-fetch
dependency, if that is possible?Is there a need for cross-fetch at all? Current LTS versions of node support native fetch.
Using @react-pdf/renderer@4.0.0 with node 22.11.0 results in the following console output:
Using
--trace-deprecation
gives me:And then
npm list node-fetch
gives me: