-
Notifications
You must be signed in to change notification settings - Fork 901
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. #6652
Comments
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information. |
Hey @lcsd I created a PR to fix the warning in #6660. However, note that at the moment this is just a warning from Vite that should not break the build: https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated. It will only be removed in Vite 6, so as the current version is 5, everything should still work with CJS. I suspect the error you're getting with |
I did everything in: I created new project with vite + REACT+ Typescript SWC (npm create vite@latest) And after that, I did deploy with Firebase "The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details." |
Hey @AdielCohen, note that this is just a warning that should not break anything in your app. As soon as we merge and release #6660 the warning will be gone. |
I see, thank you very much! |
[REQUIRED] Environment info
firebase-tools: 13.0.2
Platform: Ubuntu
[REQUIRED] Test case
$> VITE (VUE3) start app , config VueFire with auth and hosting
$> firebase experiments:enabled webframeworks
$> firebase init hosting auth
[REQUIRED] Steps to reproduce
$> firebase emulators: start => ERRORS BUT
$> firebase deploy => deploys OK with folowinf MSG (from Vite 5.0)
"The CJS build of Vite's Node API is deprecated. See
https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated
for more details."
[REQUIRED] Expected behavior
No more CJS (node require) in firebase code
[REQUIRED] Actual behavior
** MY firebase.json file;** see rewrites following Vite instructions for FireBase Deploy.
The text was updated successfully, but these errors were encountered: