Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: The punycode Module Is Deprecated #127

Open
5 of 7 tasks
delta7197 opened this issue Jan 13, 2025 · 0 comments
Open
5 of 7 tasks

DeprecationWarning: The punycode Module Is Deprecated #127

delta7197 opened this issue Jan 13, 2025 · 0 comments

Comments

@delta7197
Copy link

delta7197 commented Jan 13, 2025

Describe the bug

Hello,

I noticed that while using this repositories, the following deprecation warning appears in Node.js:

ERROR  (node:20016) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

As per the Node.js documentation, the punycode module is no longer recommended and should be replaced with a userland alternative, such as the punycode npm package.

Would it be possible to update the codebase to remove this dependency or switch to the maintained npm version of punycode?

This update would help ensure compatibility with modern versions of Node.js and prevent potential runtime errors in the future when the built-in module is fully removed.

Thank you for your hard work on maintaining this project!

Best regards,
Delta

Reproduction

Run project with Node.js pnpm run dev --port 8000

System Info

  System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12500
    Memory: 1.78 GB / 15.69 GB
  Binaries:
    Node: 22.12.0 - C:\Program Files\nodejs\node.EXE 
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD    
    pnpm: 9.15.3 - C:\Program Files\nodejs\pnpm.CMD  
  Browsers:
    Edge: Chromium (131.0.2903.70)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @antfu/eslint-config: ^3.14.0 => 3.14.0 
    @iconify-json/carbon: ^1.2.5 => 1.2.5 
    @iconify-json/twemoji: ^1.2.2 => 1.2.2 
    @nuxt/devtools: ^1.7.0 => 1.7.0 
    @nuxt/eslint: ^0.7.5 => 0.7.5 
    @nuxtjs/color-mode: ^3.5.2 => 3.5.2 
    @nuxtjs/i18n: ^8.5.5 => 8.5.6 
    @pinia/nuxt: ^0.9.0 => 0.9.0 
    @unocss/eslint-config: ^65.4.0 => 65.4.0         
    @unocss/nuxt: ^65.4.0 => 65.4.0 
    @vite-pwa/nuxt: ^0.10.5 => 0.10.6
    @vueuse/nuxt: ^12.4.0 => 12.4.0
    consola: ^3.3.3 => 3.3.3
    eslint: ^9.18.0 => 9.18.0
    eslint-plugin-format: ^1.0.1 => 1.0.1
    nuxt: ^3.15.1 => 3.15.1
    pinia: ^2.3.0 => 2.3.0
    typescript: ^5.7.3 => 5.7.3
    unplugin-auto-import: ^19.0.0 => 19.0.0
    unplugin-icons: ^22.0.0 => 22.0.0
    unplugin-vue-components: ^28.0.0 => 28.0.0
    vue-tsc: ^2.2.0 => 2.2.0
    ...

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • 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!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant