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

punycode is dprecated #39019

Open
2 tasks done
rastislavcore opened this issue Jun 19, 2024 · 4 comments
Open
2 tasks done

punycode is dprecated #39019

rastislavcore opened this issue Jun 19, 2024 · 4 comments
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@rastislavcore
Copy link

Preliminary Checks

Description

After updating to latest Gatsby (gatsby@5.13.6) I got deprecation error:

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

Reproduction Link

https://githubblitz.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Update project to latest Gatsby version (gatsby@5.13.6)
  2. Nake sure devcert and eslint is used

Expected Result

No error regards to deprecated modules.

Actual Result

 ERROR  UNKNOWN

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

Deprecation graph

project@1.2.0 /Users/aloha/dump/website
└─┬ gatsby@5.13.6 invalid: "^3.0.0 || ^4.0.0" from node_modules/gatsby-plugin-advanced-sitemap
  ├─┬ devcert@1.2.2
  │ └─┬ is-valid-domain@0.1.6
  │   └── punycode@2.3.1
  └─┬ eslint@7.32.0
    └─┬ ajv@6.12.6
      └─┬ uri-js@4.4.1
        └── punycode@2.3.1 deduped

Environment

System:
    OS: macOS 14.5
    CPU: (12) arm64 Apple M2 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v21.7.3/bin/npm
  Browsers:
    Chrome: 125.0.6422.113
    Safari: 17.5
  npmPackages:
    gatsby: ^5.13.6 => 5.13.6
    gatsby-plugin-advanced-sitemap: ^2.1.0 => 2.1.0
    gatsby-plugin-image: ^3.13.1 => 3.13.1
    gatsby-plugin-react-helmet: ^6.13.1 => 6.13.1
    gatsby-plugin-robots-txt: ^1.8.0 => 1.8.0
    gatsby-plugin-sass: ^6.13.1 => 6.13.1
    gatsby-plugin-sharp: ^5.13.1 => 5.13.1
    gatsby-plugin-styled-components: ^6.13.1 => 6.13.1
    gatsby-source-filesystem: ^5.13.1 => 5.13.1
    gatsby-transformer-remark: ^6.13.1 => 6.13.1
    gatsby-transformer-sharp: ^5.13.1 => 5.13.1

Config Flags

No response

@rastislavcore rastislavcore added the type: bug An issue or pull request relating to a bug in Gatsby label Jun 19, 2024
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 19, 2024
@Light7734
Copy link

same problem with Sass - MDX - Typescript - Sitemap - Google plugin and Responsive images

@zachjensz
Copy link

I'm having the same issue also on 5.13.6

@JustFly1984
Copy link

This issue node version dependent. Doesn't show up in node@20, but appears in node@21 and node@22

@rizumu
Copy link

rizumu commented Jul 3, 2024

To temporarily silence the deprecation warnings in the runner, modify package.json.

    "start": "node --no-deprecation gatsby develop",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

5 participants