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

启动警告The CJS build of Vite's Node API is deprecated. #3730

Closed
4 tasks
litchia opened this issue Apr 11, 2024 · 5 comments
Closed
4 tasks

启动警告The CJS build of Vite's Node API is deprecated. #3730

litchia opened this issue Apr 11, 2024 · 5 comments
Labels
pr welcome Welcome developers to submit Pull Requests to the project

Comments

@litchia
Copy link

litchia commented Apr 11, 2024

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

启动项目控制台警告The CJS build of Vite's Node API is deprecated.

复现 Bug

系统信息

  • 操作系统: macos
  • Node 版本: 20
  • 包管理器 (npm/yarn/pnpm) 及其版本: pnpm@8.15
@likui628 likui628 added the pr welcome Welcome developers to submit Pull Requests to the project label Apr 11, 2024
@doraemonxxx
Copy link

doraemonxxx commented Apr 11, 2024

Is it possible to revert to using the .js extension instead of .cjs? By using the .js file in my development, I encountered no warnings and saw a faster startup process.

Related issues
#3663
vitejs/vite#13267

@litchia
Copy link
Author

litchia commented Apr 12, 2024

Is it possible to revert to using the .js extension instead of .cjs? By using the .js file in my development, I encountered no warnings and saw a faster startup process.是否可以恢复使用.js扩展名而不是.cjs?通过在我的开发中使用.js文件,我没有遇到任何警告,并且看到了更快的启动过程。

Related issues 相关问题 #3663 vitejs/vite#13267

I didn't make any changes after cloning the project

@doraemonxxx
Copy link

Apologies, my message is directed towards the author who converted the file from .js to .cjs.

@anncwb
Copy link
Collaborator

anncwb commented Jun 12, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label Jun 12, 2024
@wilson-jw
Copy link

这个issue有什么更新吗?

@anncwb anncwb removed the Stale label Jun 14, 2024
@anncwb anncwb closed this as completed Jul 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr welcome Welcome developers to submit Pull Requests to the project
Projects
None yet
Development

No branches or pull requests

5 participants