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 in Taro CLI initialization #16769

Open
huyixi opened this issue Oct 27, 2024 · 2 comments

Comments

@huyixi
Copy link

huyixi commented Oct 27, 2024

相关平台

微信小程序

小程序基础库: 暂无
使用框架: React

复现步骤

  1. 在终端运行 taro init my-project
  2. 出现以下警告信息:
    (node:50582) [DEP0040] DeprecationWarning: The `punycode` module is deprecated.
    Please use a userland alternative instead.
    
    

期望结果

不应当包含警告信息。

实际结果

出现了警告信息

环境信息

👽 Taro v4.0.7

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

  Taro CLI 4.0.7 environment info:
    System:
      OS: macOS 15.0.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 22.9.0 - /opt/homebrew/bin/node
      Yarn: 1.22.22 - ~/Library/pnpm/yarn
      npm: 10.4.0 - ~/Library/pnpm/npm
    npmPackages:
      @tarojs/cli: 4.0.6 => 4.0.6
      @tarojs/components: 4.0.6 => 4.0.6
      @tarojs/helper: 4.0.6 => 4.0.6
      @tarojs/plugin-framework-react: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-alipay: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-h5: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-harmony-hybrid: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-jd: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-qq: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-swan: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-tt: 4.0.6 => 4.0.6
      @tarojs/plugin-platform-weapp: 4.0.6 => 4.0.6
      @tarojs/react: 4.0.6 => 4.0.6
      @tarojs/runtime: 4.0.6 => 4.0.6
      @tarojs/shared: 4.0.6 => 4.0.6
      @tarojs/taro: 4.0.6 => 4.0.6
      @tarojs/vite-runner: 4.0.6 => 4.0.6
      babel-preset-taro: 4.0.6 => 4.0.6
      eslint-config-taro: 4.0.6 => 4.0.6
      react: ^18.0.0 => 18.3.1
This was referenced Nov 2, 2024
@SpringHgui
Copy link
Contributor

+1

@SpringHgui
Copy link
Contributor

node版本 < 21 即可,punycode弃用了

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

2 participants