I am having trouble using react-scripts, typescript, and ts-loader all the in the same project. I cannot use the most recent version of typescript with react-scripts because react-scripts version 5.0.1 can only work with typescript version 3.9.2 or below. However, ts-loader can only work with the most recent version of typescript. How can I satisfy all these constraints so that I can use all three of these packages?
CRA seems to work fine with TypeScript 5. So, if you need a temporary workaround for the error and happy to continue working with it, you can achieve that by creating a new overrides section in your package.json (if not existing already), and adding the same typescript version in dependences to it.
https://github.com/facebook/create-react-app/issues/13080 maybe this can help you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With