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 find Create React App version and update it? #4263

Open
sabahang opened this issue Dec 24, 2019 · 2 comments
Open

How to find Create React App version and update it? #4263

sabahang opened this issue Dec 24, 2019 · 2 comments
Labels

Comments

@sabahang
Copy link

Hi,

I know that Ionic cli for React uses CRA behind the scenes but I couldn't find a way to check which version of it is being used in any given ionic-cli version. I checked both Ionic framework repo and this repo and searched in package.json but doesn't seem to be there. Where can I find this info?
Can I upgrade CPA independently from Ionic or CPA updates should only come by updating Ionic (or Ionic CLI)?

@ionitron-bot ionitron-bot bot added the triage label Dec 24, 2019
@sabahang sabahang changed the title How to find Create React App version? How to find Create React App version and update it? Dec 24, 2019
@imhoffd
Copy link
Contributor

imhoffd commented Jan 30, 2020

Hi @sabahang!

We don't use create-react-app to actually create Ionic React apps. We download a ready-to-go starter template from our starters.

This may change in the future. You can follow this issue for updates: #3499

@mirkonasato
Copy link

Ionic projects generated with the CLI have a react-scripts dependency in their package.json ; that's probably what you're interested in. (The react-scripts package is part of create-react-app.)

There's nothing stopping you from updating the react-scripts version in your Ionic project. However there's always the risk that a newer react-scripts version may include changes that break some @ionic/cli functionality. The only way to find out if a combination of react-scripts and @ionic/cli versions is compatible is to try and see if it works I suppose.

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

No branches or pull requests

3 participants