-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Opaque error for invalid CSS after upgrade: TypeError: Cannot read property '0' of undefined #6282
Comments
Interesting, that is a mysterious error message @buildbreakdo. Thanks for tracking down the cause. Was it telling you that a JS or CSS file had an error? Can you supply an example in a repo? Thanks! |
@mrmckeb Yes, indeed it is! This is what the full output looks like: Here is an example repo: Clone and |
OK, so it looks like this need to be properly investigated ad solved. Would you be able to raise a PR? If not, we can leave it open for someone to pick up (perhaps me on the weekend). Thanks for the repo too, that's great help. |
@mrmckeb Yes, I'll give it a go, see if I can get a PR in sometime this week. |
@mrmckeb Pull request with a fix is in |
After upgrading from react-scripts 1.1.4 to 2.1.3 see an opaque error message when trying to build:
Thought this might be related to #2069 (determined to be bug of package managers?), but after trial and error determined it was related to invalid CSS.
Reproduce (react-scripts 2.1.3):
yarn build
Output:
This invalid CSS does not produce a build error in react-scripts 1.1.4, so this is something people will bump into when they upgrade and not really know what to do (e.g., claim the upgraded version is broken).
The text was updated successfully, but these errors were encountered: