Upgrading from react scripts 3.4 to 4 - how does it work? #10007
Unanswered
RobertDanielsson
asked this question in
Q&A
Replies: 1 comment
-
yes
also yes
yes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I followed the instructions to upgrade react-scripts from 3.4 to 4 (yarn add --exact [email protected]), however i'm confused as to how this works. It only changes one line in my package.json file, react-scripts 3.4 to 4. My other packages such as react, react-dom, jest, testing-library/react etc are still on the same version as before since the command doesn't touch them.
Am i supposed to upgrade these packages manually in my package.json or how do i correctly handle this migration?
Second question:
Our project uses Material-UI 4 which is supports react 16 and not 17 (material-ui 5 is in alpha and supports react 17). Can we upgrade to react-scripts 4 and stay on React 16? Will this give us fast refresh functionality for example?
Beta Was this translation helpful? Give feedback.
All reactions