vite-ssg
vite-ssg copied to clipboard
[DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
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.
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!)
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!
Upgraded, thanks