Migrate to CRA

This guide helps you migrate a Vite.js project to Create React App (CRA).


Step 1: Prepare your project
  • Do not delete or modify any files before running the migration command.
  • Run the command inside the root directory of the project.
Example folder structure:
Zone_Typescript
  ├─ vite-ts
  ├─ starter-vite-ts

cd vite-ts
# OR
cd starter-vite-ts
Step 2: Run migration command
  • Run the appropriate version of the vite-to-cra CLI tool based on your current Zone UI version.
  • In the vite-ts or starter-vite-ts folder.

Zone UI v3.1.0 | v3.2.0 | v4.0.0

npx vite-to-cra@1.3.0

Zone UI v3.0.0

npx vite-to-cra@1.2.0

Zone UI v2.4.0

npx vite-to-cra@1.1.1