Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Updating Create React App

We know that when we create a new create-react-app` project, it comes with the latest version and dependencies. But what if the framework updates when you're in the middle of building your app?

How do you update to the latest version of CRA for a particular project? Is this even an issue? Thanks :)

1 Answer

Michael Liendo
Michael Liendo
15,326 Points

Good question. This is what is listed in the docs (https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#updating-to-new-releases)

"To update an existing project to a new version of react-scripts, open the changelog, find the version you’re currently on (check package.json in this folder if you’re not sure), and apply the migration instructions for the newer versions."

Hope that helps.

ps) the CRA docs are filled with goodies and is pretty well laid out/maintained, if you haven't had a chance to poke around, I'd encourage you to do so.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Thanks Michael,

I'll definitely have a look. Thanks for pointing out the docs. I'm not necessarily good at finding all the info I need from docs! :)