Upgrade react-scripts to v4.0.x
See original GitHub issueReact scripts was recently upgraded to v4.0.0. This issue is to track and finish migrating HospitalRun to react-scripts v4.0.x. Dependabot couldn’t do this on its own due to a failing build: https://github.com/HospitalRun/hospitalrun-frontend/pull/2437.
Things to consider:
npm startshould start the appnpm testshould successfully run the test suitenpm run lintshould continue to report linting errors.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Upgrade Create React App-Based Projects to Version 4 (CRA 4)
react -scripts includes scripts and configuration. By running this command, we upgrade react-scripts from version 3.4.3 to version 4.0.0 smoothly.
Read more >Updating to New Releases - Create React App
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 ......
Read more >Upgrading react-scripts to 4.x.x breaks my app - Stack Overflow
I am concerned with securities issues with react-scripts v3. I also would like to upgrade Typescript to v4+, there seem to be an...
Read more >My experience migrating a React App from Create-React-App ...
Updating. In order to update the version from 4 to 5 run the following command: Yarn command to update react-scripts.
Read more >Upgrading from react scripts 3.4 to 4 - how does it work? #10007
I followed the instructions to upgrade react-scripts from 3.4 to 4 (yarn add --exact react-scripts@4.0.0), however i'm confused as to how ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I may revisit this after the RTL conversion, to see if it makes a difference. At the moment, 80+ tests fail for various reasons. And the number changes each time all the tests are run…
Yes I think the way the tests are being tested might have some race conditions happening so maybe with that conversion to RTL would solve that and would make upgrade to react 17 easier as well. I managed to have around 46 tests failing but I still have those errors that you mentioned above