Create-react-app: What is the best way to update create-react-app if I've already "ejected" the project?

Created on 28 Oct 2016  路  3Comments  路  Source: facebook/create-react-app

What is the best way to update create-react-app if I've already "ejected" the project?

Hi, guys!
I looked at the CHANGELOG.md, I like new changes and I want to migrate from 0.*.0 to 0.7.0, but I've already "ejected" the project.

Most helpful comment

Well, this is the tradeoff with ejecting. Either you don't eject and you get all updates for free, or you have to jump through the hoops to get them. There is a third option: you can fork react-scripts, make the changes you need, and then publish your fork and try to keep it up to date.

All 3 comments

For me it was, create new react project in a different place with same name, copy all the code files and package.json dependencies across, npm install, should be ok from there :)

@tbillington Thanks, yes, I've been thinking about this. Maybe there is another way, bacause
it will need to be repeated every time after create-react-app will update.

Well, this is the tradeoff with ejecting. Either you don't eject and you get all updates for free, or you have to jump through the hoops to get them. There is a third option: you can fork react-scripts, make the changes you need, and then publish your fork and try to keep it up to date.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Evan-GK picture Evan-GK  路  3Comments

Aranir picture Aranir  路  3Comments

DaveLindberg picture DaveLindberg  路  3Comments

dualcnhq picture dualcnhq  路  3Comments

JimmyLv picture JimmyLv  路  3Comments