-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Not able to use create-react-app 4.0.3 #12282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I had the same issue, the solution that worked for me is to clear the cache
but wait for it to clear, the clearing process will not show you a loading bar of cleaning, so you may think it is not responding and ( ctr c ) the process, I was doing that, Then try again
If still not working try
then
|
That may well solve some issues, but I don't think it's the one here. I'm standing up fresh Docker containers (so no NPM cache) and am getting an error message trying to run CRA 4.0.3, where older versions of CRA are explicitly blocked. |
Me too, I was trying to use latest CRA but storybook and other libraries don't work with react 18 yet so when trying to use CRA4 got the same error, I have cleaned all npx, yarn and npm caches and also uninstalled any global dependency and still doesn't work. Please help! |
This just installs the latest version which comes with latest react version (18), not suitable for me. I need version 17. |
We created a custom template that needs react version 17, but CRA does not provide mechanisms to fix react and react-dom versions |
I tried using CRA4 with
but that simply gives this error
I don't understand why they try so hard to not allow you to use an old version. Tons of use cases and people need React 17 instead of React 18. And making a fresh app with CRA4 is much more stable than making one with CRA5 and downgrading React versions manually |
In another answer, I saw that using |
I want to install version 4.0.3 because that's the version in use by our large app. I want to install the exact same version in a new, bare project to experiment with our create-react-app configuration. I've tried the The npx cache is empty: The easiest way to run an old version of Edit if (latest && semver.lt(packageJson.version, latest)) { to: if (false) { If I needed to automate this (such as in CI), I would just run |
From a node:17-alpine Docker image:
It would be very handy to be able to use 4.0.3 while 5.0.X issues are worked out.
The text was updated successfully, but these errors were encountered: