-
-
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
build failure with strange error #6148
Comments
I would start by looking for |
Hello @gigamesh ,
Try removing Please post your |
Thanks - I tried all your suggestions but no luck. package.json:
|
When you created a new react application with |
Everything installs ok and the app runs, but I get the same error when trying the build script.
Nothing unusual - no errors
The app runs when I do
Yeah I'm thinking the same thing but I'm not sure how to narrow it down given the app runs fine. I just tried running the commands in a different shell (Git Bash instead of VSCode's built-in CLI) but no luck. I tried searching the code base for px as @matt-fevold suggested, but not finding anything unusual. I also tried an older release of material-ui, and tried downgrading Node back a couple versions (I recently upgraded so thought that might be the issue). Same result. :( |
Give this a check and hopefully it will help. |
What does this do? ...because I think it just added to my problems. I tried it and now reinstalling CRA results in an error (I tried both Node 10.15.0 and 8.15.0):
|
|
Great thank you - now
However, I'm still getting this:
|
Hmm, tell me what's the output of |
|
|
bummer - yeah I tried running the build script in another app and it worked, so it's something related to my dependencies. I wish the error output had more information. |
So when you tried it this time, wasn't working (which means problem was global) and now worked? (which means its only topical)
Have a great day |
The app works in development mode, but the
Thanks I'll those suggestions.
Here it is if you want to try it out: thanks! |
I literally downloaded it before 5 min :) Have a nice day! |
I don't know what is problematic about the stuff you're referring to but I'll do some research. Big thanks for narrowing it down! |
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
npm version: 6.5.0
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
^^^ Note: The system info says
create-react-app: Not Found
, but when I check the version, it says I'm on 2.1.3Steps to Reproduce
run
npm run build
Expected Behavior
Create build bundle
Actual Behavior
Fails to compile, and produces strange error (It's maybe worth noting that I searched my codebase for
"px"
from the error, and didn't find anything). Also, I don't have any problem running the app. Only the production build fails.Output of log file:
The text was updated successfully, but these errors were encountered: