vite-ssg icon indicating copy to clipboard operation
vite-ssg copied to clipboard

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

Open HummingMind opened this issue 1 year ago • 1 comments

Describe the bug

When building the project with vite-ssg build I get the following warning: (node:8720) [DEP0040] DeprecationWarning: The 'punycode' module is deprecated. Please use a userland alternative instead.

image

Reproduction

Any project using 0.23.8 version

System Info

Node 22.5.1
NPM 10.8.2

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

Contributions

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

HummingMind avatar Aug 03 '24 22:08 HummingMind

I am not sure why I closed this. 🤣

@antfu Can jsdom please be upgraded to version ^25 in vite-ssg dependencies?

jsdom > tough-cookie > punycode Newer versions of jsdom use the newer version of tough-cookie, which fixed the issue.

Thank you!

HummingMind avatar Oct 17 '24 04:10 HummingMind

Upgraded, thanks

antfu avatar Oct 28 '24 15:10 antfu