DEV Community

loading...

Discussion on: Gatsby build production error using Material UI

Collapse
lucis profile image
Lucis

${theme.link && theme.link.active} will probably fix it temporarily.

It might be related to the SSR process that Gatsby runs when building for production, take a look into it.

Collapse
wayneco profile image
Wayne-CO Author

Yeah it's not just that theme variable. When I comment that out and run gatsby build other undefined variables are showing up. I keep repeating the process many times over and still same thing. Even on simple areas where I'm just passing a prop from parent to child and using it in the child it errors out. Not sure why. I've updated my question to include the repo.