-
-
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
Compilation Failure when Making a Production Build with create-react-app v2 #5712
Comments
Similar problem here, get this error when I hit the first |
False alarm on my part. By elimination, I found that the culprit was a SASS function. It turned out I was using a Doing the import did the trick and got rid of the error. ✨
|
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
While issue closed 3 days ago...
Using: |
@Mulli Same issue for me. Your I fix it by wraping variable with sass interpolation Try this insted: |
Yes. I did the same following the answer of @npkhoa2197. |
My bad.... I did not read all the message.... Thanks! |
Is this a bug report?
NO
NOTE: I does not encounter this issue in create-react-app v1
I encounter this compilation failure when doing a production build after migrating from create-react-app v1 to create-react-app v2. The local development, i.e: yarn start, is still working properly.
I tried to fix this by using SCSS interpolation, i.e: wrap $progress-size and $border-size with #{} --> #{$progress-size} #{$border-size} and it solves the problems.
I wonder why I have to fix like that? Thanks in advances.
The text was updated successfully, but these errors were encountered: