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

Document how to upgrade react-scripts after creating an app #119

Closed
keyz opened this issue Jul 23, 2016 · 13 comments
Closed

Document how to upgrade react-scripts after creating an app #119

keyz opened this issue Jul 23, 2016 · 13 comments

Comments

@keyz
Copy link
Contributor

keyz commented Jul 23, 2016

Also, can we add a version checking that prompts users to upgrade their react-scripts dependency when there's a new version? :)

@dolchi21
Copy link

would editing the package.json dep and installing do it? (always checking for compatibility errors)

@keyz
Copy link
Contributor Author

keyz commented Jul 23, 2016

Yeah, I think editing package.json or npm update will do it but it hasn't been documented. Just posting here to see if we want something more than that.

@lacker
Copy link
Contributor

lacker commented Jul 23, 2016

Imagine if every npm module you installed, also prompted you to upgrade it when there's a new version. That would be pretty annoying. ;-) For a lot of people, there's actually no reason to upgrade react-scripts - if you're on an older, more-stable version, and you're happy with it, then just keep being happy with it. We also might release a breaking change in react-scripts at some point and then an automated message that encourages people to update would be counterproductive.

@mxstbr
Copy link
Contributor

mxstbr commented Jul 23, 2016

Totally agree with @lacker.

We've had this discussion quite a few times over at react-boilerplate – whatever version you use will work perfectly fine, there's no need to upgrade!

@gaearon gaearon closed this as completed Jul 23, 2016
@gaearon
Copy link
Contributor

gaearon commented Jul 23, 2016

We actually should document that so reopening.
But I agree we shouldn’t ask people to update.

@gaearon gaearon reopened this Jul 23, 2016
@ForbesLindesay
Copy link
Contributor

This is also a little different to react-boilerplate. Updating a boilerplate doesn't really make sense/is a nightmare to do. On the other hand we plan for most updates to react-scripts to be backwards compatible, but there could be performance enhancements and new features. For this reason I think we should suggest that people may want to upgrade.

I probably don't think we should prompt people to upgrade though, just suggest that they do in the documentation.

@insin
Copy link
Contributor

insin commented Jul 25, 2016

If they're not running npm out --depth=0 on a regular basis, they don't deserve your sweet new features 😸

@gaearon gaearon closed this as completed in f34c72e Aug 4, 2016
gaearon added a commit that referenced this issue Aug 22, 2016
@cesarvarela
Copy link
Contributor

i need a feature that is on 1.0.0 and my react-scripts are in 0.9.5 how do I update them?

@gaearon
Copy link
Contributor

gaearon commented May 31, 2017

You can find the instructions in release notes, as always.
https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.0

@ghost
Copy link

ghost commented Nov 23, 2017

@gaearon if I am on 1.0.14 and I want to upgrade to 1.0.17, must I yarn add --exact each version individually or can I go directly to yarn add --exact react-scripts@1.0.17?

@ghost
Copy link

ghost commented Nov 23, 2017

It might seem like a silly question and it is. I was imagining that some sort of local data or config had to change. However (duh) there is no build configuration here or anything else to migrate. So I think the answer is probably: No. I do not need to install each version individually. Sorry for asking silly questions!

@simonw
Copy link

simonw commented Apr 30, 2018

I'm seeing this warning on a project I created using create-react-app:

2018-04-30 at 12 49 pm

Official documentation on how to upgrade would be really useful.

@Timer
Copy link
Contributor

Timer commented Apr 30, 2018

Documentation on how to upgrade is on every release.

https://github.com/facebook/create-react-app/releases

@facebook facebook locked and limited conversation to collaborators Apr 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants