'React Scripts V5 throwing Errors

I have a React App working on version 17, recently I upgraded to version 18, I upgraded the react , react dom and other relevant packages as well. My react-scripts version was ^4.0.3 and when i run react-scripts start it ran sucessfully without any issues

In the next step I upgraded the react-scripts to version 5 and node version to 14. And when i tried to start the app it gives random errors from diffrent files including .svg files and from node_modules as well


In Short

React 18

Node 12

react-scripts 4.0.3

works fine


React 18

Node 14

react-scripts 5

Give errors




Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source