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 #207

Open
yun36524 opened this issue Dec 5, 2024 · 2 comments
Open

The CJS build of Vite's Node API is deprecated #207

yun36524 opened this issue Dec 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yun36524
Copy link

yun36524 commented Dec 5, 2024

信息

应该不是本项目的问题,但是想请大佬帮忙看看是为什么,下载后安装运行就提示标题的警告,不影响使用,就是有警告比较难受

nodejs 版本

v18.12.0

(推荐使用 v18 以上)


包管理器及其版本

TODO

(请使用 pnpm)


系统

TODO

(该项目开发环境系统为 win11)



bug

描述

下载项目,直接pnpm install,然后pnpm dev,就会出现警告The CJS build of Vite's Node API is deprecated,网上的方法都尝试了,还是不行,看看大佬有没有解决方法


预期结果

TODO


最小测试仓库

TODO

@markthree
Copy link
Member

image

似乎是 lightningcss 依赖内部的问题,目前没有很好的解决方案

@markthree markthree self-assigned this Dec 8, 2024
@markthree markthree added the bug Something isn't working label Dec 8, 2024
@yun36524
Copy link
Author

image

似乎是 lightningcss 依赖内部的问题,目前没有很好的解决方案

好的,感谢,我再试试别的方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants