You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:38404) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[INFO] Starting the development server...
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
使用 --trace-deprecation 选项运行命令后,显示了详细的堆栈跟踪信息:
node --trace-deprecation $(yarn bin)/docusaurus start
(node:49996) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
at node:punycode:3:9
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
at loadBuiltinModule (node:internal/modules/helpers:96:7)
at Module._load (node:internal/modules/cjs/loader:1063:17)
at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
at Module.require (node:internal/modules/cjs/loader:1297:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (/Users/yiweihan/Documents/iamProgramer/hust-mirrors/node_modules/fast-url-parser/src/urlparser.js:401:16)
at Module._compile (node:internal/modules/cjs/loader:1460:14)
[INFO] Starting the development server...
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
✔ Client
Compiled successfully in 2.67s
client (webpack 5.86.0) compiled successfully
复现步骤
打开终端并导航到项目目录。
运行 yarn start 命令。
观察终端输出的警告信息。
预期行为
开发服务器应正常启动,并且不应出现任何弃用警告。
实际行为
尽管开发服务器成功启动,但出现了以下弃用警告:
(node:38404) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
环境信息
操作系统:macOS
Node.js 版本:v22.3.0
Yarn 版本:v1.22.22
Docusaurus 版本:3.5.2
The text was updated successfully, but these errors were encountered:
问题描述
在运行
yarn start
命令启动 Docusaurus 开发服务器时,出现以下警告信息:使用
--trace-deprecation
选项运行命令后,显示了详细的堆栈跟踪信息:复现步骤
yarn start
命令。预期行为
开发服务器应正常启动,并且不应出现任何弃用警告。
实际行为
尽管开发服务器成功启动,但出现了以下弃用警告:
(node:38404) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
环境信息
The text was updated successfully, but these errors were encountered: