Closed kpennell closed 5 years ago
👋 Thanks for using Material-UI!
We use GitHub issues exclusively as a bug and feature requests tracker, however, this issue appears to be a support request.
For support, please check out https://material-ui.com/getting-started/support/. Thanks!
If you have a question on StackOverflow, you are welcome to link to it here, it might help others. If your issue is subsequently confirmed as a bug, and the report follows the issue template, it can be reopened.
@kpennell If you can narrow this down to a specific reproducible issue that is caused by Material-UI, feel free to reopen.
I had a quick look, it's definitely a support question regarding how Gatsby works. tip: gatsby-browser.js !== gatsby-ssr.js.
@oliviertassinari Thanks for the response and all the work you do.
I (seemingly) solved this by literally copying what I had gatsby-browser.js to gatsby-ssr.js (wrapRootElement + wrapPageElement). I'm still not totally sure why this worked -- I'll need to read more about these in Gatsby's docs.
Dear frustrated/lost person from the future seeing wacky different CSS between gatsby develop
and gatsby build
....if you're using React Context, try verbatim copying your wrapRootElement/wrapPageElement between the two files.
Thanks @oliviertassinari
Hey guys I am getting the same issue. Can you please tell me the detailed solution for this?
Using 4.6
Current Behavior 😯
I'm just struggling for 8+ hours with a
gatsby build
vs.gatsby develop
issue. The app looks/works one way withgatsby develop
(the right way) and then the styling goes to hell when usinggatsby build
gatsby build
creates a footer that takes up half of the pageI've tried:
gatsby-plugin-material-ui
pluginExpected Behavior 🤔
gatsby develop
creates a functioning footer player like soIt's odd really, the HTML in my code editor looks like this:
But the html in my browser after
gatsby build
has Grids + containers in it:Steps to Reproduce 🕹
So the oddest thing is that it seems to work fine in codesandbox
https://codesandbox.io/s/github/kpennell/berlinmusicmap/tree/master/?fontsize=14
https://v0i41.sse.codesandbox.io/
Context 🔦
I think there's still many many oddities in how Gatsby and Material-UI play together. These allude to it: https://github.com/gatsbyjs/gatsby/issues/8560 https://github.com/gatsbyjs/gatsby/issues/9911
Your Environment 🌎