Skip to content
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

Minified React error #62; visit http://facebook.github.io/react/ docs/error-decoder.html? #4611

Closed
avinashs735 opened this issue Mar 19, 2018 · 4 comments

Comments

@avinashs735
Copy link

Minified React error #62; visit http://facebook.github.io/react/ docs/error-decoder.html?invariant=62&args[]= for the full message or use the n on-minified dev environment for full errors and additional helpful warnings.

I am unable to figure out the actual reason for this.....
image

@m-allanson
Copy link
Contributor

m-allanson commented Mar 19, 2018

Based on the error message at https://reactjs.org/docs/error-decoder.html?invariant=62&args[]=, it looks like you're doing something like:

<Component style="margin-right: 1em" />

instead of:

<Component style={{marginRight: '1em'}} />

Although it looks like you're using Styled Components, so it may be something to do with how that's set up. Can you push up a minimal test repo that reproduces this error?

@garrynsk
Copy link

Hi there! I've got the same error. Sure this is because of mix of UI tools: material-ui and styled-components. I tried to implement SSR, but the build breaks. If I remove SSR completely, the build goes smooth, but I definitely need it. Probably, something is wrong with my gatsby-ssr.js setup, but I can't track the error. The repo is here. Please, help!

@garrynsk
Copy link

garrynsk commented Mar 31, 2018

Well, I've resolved the problem.

  1. installed jss
  2. fixed my setup with help of official material ui - gatsby repo and this gatsby-styled components gist.

You can find the working repo here .

@KyleAMathews
Copy link
Contributor

Looks like this is resolved so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants