vite 5 +

i am getting this warning with vite 5+ The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. vite v5.4.11 building for production... does refine support module type projects in the package.json
vitejs
Troubleshooting
Next Generation Frontend Tooling
7 Replies
kapa.ai
kapa.ai3w ago
Hi @Joe Gaffney. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, there isn't specific information about Refine's support for module type projects in package.json or compatibility with Vite 5+. However, I can provide some relevant context: 1. Refine has been working on improving compatibility with Vite. According to a GitHub issue (https://github.com/refinedev/refine/issues/3659), Refine updated their create-refine-app and https://refine.new with Vite support. 2. There have been some ESM/CJS issues reported with Refine packages. For example, an issue was reported (https://github.com/refinedev/refine/issues/5831) about ESM/CJS errors with @refinedev/devtools. 3. Refine has been working on resolving issues related to module resolution. In another GitHub issue (https://github.com/refinedev/refine/issues/4999), there was a discussion about typing issues with TypeScript 5 and "moduleResolution": "Bundler" in tsconfig.json. Given this context, it appears that Refine is actively working on improving compatibility with modern build tools and module systems. However, the knowledge sources don't provide a definitive answer about support for module type projects in package.json or compatibility with Vite 5+. For the specific warning you're encountering with Vite 5+, it seems to be a Vite-specific issue rather than a Refine issue. The warning suggests checking Vite's troubleshooting guide for more details. If you're experiencing issues with a Refine project using Vite 5+, you might want to: 1. Check Refine's official documentation for the latest compatibility information. 2. Consider opening an issue on Refine's GitHub repository to get more specific guidance from the maintainers. 3. Try using the latest version of Refine, as it may include improvements for newer build tools. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@422289470487003153> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
correct-apricot
correct-apricotOP3w ago
@kapa.ai what does the new package.json look like with vite 5+
kapa.ai
kapa.ai3w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- I apologize, but the knowledge sources provided do not contain specific information about what a package.json file looks like with Vite 5+ in the context of Refine. The documents mainly discuss Refine's compatibility with Vite in general terms, but don't provide details about the package.json configuration for Vite 5+. To get accurate and up-to-date information about the package.json structure for a Refine project using Vite 5+, I would recommend: 1. Checking the official Refine documentation for the latest guides on setting up a project with Vite. 2. Looking at the most recent examples in the Refine GitHub repository, as mentioned in this comment (https://github.com/refinedev/refine/issues/3659#issuecomment-1416150318). 3. If you can't find the information there, consider opening an issue on the Refine GitHub repository to ask for guidance on the correct package.json configuration for Vite 5+. I apologize that I couldn't provide a more specific answer, but it's important to ensure the information is accurate and up-to-date, especially when it comes to configuration files like package.json. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@422289470487003153> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
passive-yellow
passive-yellow3w ago
@Joe Gaffney Is your problem solved? Refine supports both cjs and esm https://arethetypeswrong.github.io/?p=%40refinedev%2Fcore%404.56.0
correct-apricot
correct-apricotOP3w ago
@Alican Erdurmaz hey yes got it to work there was just some warnings from other packages not refine related

Did you find this page helpful?