Swapping out CRA with Vite after using CLI

Hello, I tried using the CLI to create a base with CRA using v4 of refine. I then tried to swap it out with Vite but I get the following error:
/my-refine-project/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^

Error: Project type not found
at E (/my-refine-project/node_modules/@refinedev/cli/dist/cli.js:2:6363)
/my-refine-project/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^

Error: Project type not found
at E (/my-refine-project/node_modules/@refinedev/cli/dist/cli.js:2:6363)
I checked out the GH Issues for Yoga and for Refine and can't find anything to help me. Does anybody have any suggestions?
4 Replies
kapa.ai
kapa.ai15mo ago
Hey @rev_eng_g! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
kapa.ai
kapa.ai15mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I found this documentation (https://refine.dev/docs/packages/documentation/cli/#how-to-add-to-an-existing-project) that might help you. It explains how to add the refine CLI to an existing project. It also provides the following code snippet that you can use to update the @refinedev/antd package to the latest version:
npm i @refinedev/antd@latest
npm i @refinedev/antd@latest
I hope this helps! ----------------------
CLI | refine
refine CLI is a command line application that allows you to interact with your refine project and perform some tasks. This includes creating a new resource, managing updates, swizzle components, and runs your project (build, start, dev).
kapa.ai
kapa.ai15mo ago
<@752749038742405211> kapa.ai is still learning and improving, please let us how it did by reacting below
Omer
Omer15mo ago
Hey @rev_eng_g , Thank you for contacting us! Can you provide a CodeSandbox or StackBlitz environment that we can use to reproduce the issue?