-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
start fails right after create-react-app #10518
Comments
same problem, started facing it today |
There is workaround by using older version of create-react-app by running
|
ye. the point is to solve the problem. thanks for comments |
I also have the same issue and when I tried this it throws an error like this,
We no longer support global installation of Create React App. Please remove any global installs with one of the following commands:
The latest instructions for creating a new app can be found here: npm ERR! code 1 npm ERR! A complete log of this run can be found in: |
Don't know what's causing this but I fixed the problem by creating a new user in the PC and by deleting the current one that had the problem |
Having the same issue - newly set-up react app isn't working (v4.0.2), and when trying to use v4.0.1 it says it's not the latest release |
Okay. Now it works with no problem. Not full sure of what happened. The only relevant thing i can tell i did that may change something was: npm cache verify. If u still face this issue try this and comment if it works for u. Thanks! |
I am also having the same issue with (v4.0.2) and npm (v7.5.2) |
Update - I went into the package.json and changed the react-scripts to 4.0.1 and typed npm install(terminal) and re-ran it and it fixed the issue. Hope this helps. |
@RaeganTysh your latest post worked for me. |
worked for me , thankyou so much ! |
Didn't work for me, still getting the same error |
Same for me, using react-scripts 4.0.1 in a monorepo and still getting this error. Tried removing all |
thankyou so much for this! |
thanks a lot its work |
Thank you!!!! |
@alisscco If you are asking about what command line or what software am I using for react then it is VS Code. |
Thanks a lot, it helped! Sadly, the issue still happens to be present in the newer version... |
wait, so was there an actual solution to this problem? Is the CRA team aware of this? Will this be fixed in a future update of CRA? |
Thanks man!, it's working. |
This solution worked for me too. Thanks a lot. |
Thank you! It worked for me |
It worked for me. Thank you so much! |
@fabiangamboa95 This is only a guess, but I see that the path with #10964 also has a single quote in the path with a similar error. |
✅✅✅ @alzeih I can confirm that in my case stupid single quote ' was part of my computer's name (e.g. dummy'sPC). After moving out the project folder to a higher level (I moved it to C:/Users/my-app) and reinstalling node_modules everything is working properly. This is not a first time for me having issues because of that stupid single quote, but after some time you simply forget about that until you get to the point when there is no logical explanation for bugs you're encountering while programming. Thank you so much @alzeih for reminding me of this bug. |
any idea what is the root cause of this? I'm getting this error outside of CRA, and I'm trying to figure it out. |
Thanks you so much! It works for me. |
yes.. ahahaha. that's the thing. if there's a single quote on the path string react-scripts > 4.0.1 do not work |
Works for me. Thank you @RaeganTysh |
Works for me! Thanks, man! \õ/ |
KING ! thanks |
Hey guys ! Seems like I have found what was causing the issue for me. As someone else was stating : there was a single quote in one of the parent folder's name. The path was something like "c://blabla/react's_basics/my_app", I just removed the single quote to have "c://blabla/react_basics/my_app" and now it does work very fine. Hope it helps. |
|
It worked for me too |
worked for me, thank you so much. |
For those still facing this issue: The problem was the ' (single quote) in the path/dir. |
Omg, you're a lifesaver! I was really, really, really frustrated with this error. This solved it. Why is there such a big issue with react that has such an arcane and crpytic error message and it's not being addressed?! |
Have you discovered the fix? changing react-scripts to 4.0.1 did not also worked for me :( |
I don't remember how I solved it, but it was coming and going depending on some race condition and source code errors. This only makes sense if you ejected CRA and have some custom loaders |
This is the error thrown:
./src/index.js 1:45
Module parse failed: Unexpected token (1:45)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
|
|
This is the first time i face this issue. Ive been creating react apps with no problems, till about 20 hrs I faced this issue
Im currently on Ubuntu 20.04.2 LTS; node:14.15.4, npm 6.14.10
The text was updated successfully, but these errors were encountered: