Skip to content

How to solve this waring?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. #1320

Answered by thednp
ShawnRZ asked this question in Q&A
Discussion options

You must be logged in to vote

Just rename your vite.config.ts/js to vite.config.cjs

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@apatrida
Comment options

@thednp
Comment options

Answer selected by ShawnRZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants