question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade react-scripts to v4.0.x

See original GitHub issue

React 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 start should start the app
  • npm test should successfully run the test suite
  • npm run lint should continue to report linting errors.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nobraynercommented, Dec 19, 2020

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…

0reactions
doubleppereiracommented, Dec 19, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found