Skip to content
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

How to migrate from react-boilerplate to react CRA? #3103

Open
avadheshchauhan opened this issue Nov 23, 2023 · 1 comment
Open

How to migrate from react-boilerplate to react CRA? #3103

avadheshchauhan opened this issue Nov 23, 2023 · 1 comment

Comments

@avadheshchauhan
Copy link

There is an existing project that uses a react-boilerplate template, but I would like to move it to react CRA. However, there are no guidelines on how to migrate. Is there any way to migrate?

@najmamat
Copy link

najmamat commented Jan 3, 2024

I have recently migrated a project using react-boilerplate to another bundler (Vite). Basically what i did:

  1. Created a new project using the vite template. Choose the one that suits you, i chose react with JS (https://stackblitz.com/edit/vitejs-vite-wczmsi?file=index.html&terminal=dev)
  2. Moved over packages and run install
  3. When you have installed packages from your old project and just run them template screen -> move over your code. You will have to fix imports, or configure the import rules in vite.config.js file. It is tedious work, but it is doable using regex search & replace in your IDE. You just keep fixing the errors until you can run the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants