<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Wayne-CO</title>
    <description>The latest articles on DEV Community by Wayne-CO (@wayneco).</description>
    <link>https://dev.to/wayneco</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F300038%2F2fceae86-80c8-47da-ae0f-10c6ff3d0758.png</url>
      <title>DEV Community: Wayne-CO</title>
      <link>https://dev.to/wayneco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wayneco"/>
    <language>en</language>
    <item>
      <title>Gatsby build production error using Material UI</title>
      <dc:creator>Wayne-CO</dc:creator>
      <pubDate>Tue, 24 Dec 2019 09:50:17 +0000</pubDate>
      <link>https://dev.to/wayneco/gatsby-build-production-error-using-material-ui-47c3</link>
      <guid>https://dev.to/wayneco/gatsby-build-production-error-using-material-ui-47c3</guid>
      <description>&lt;p&gt;Hi, I'm getting an error when trying to build production for gatsby, but on develop my website runs with no problem. I'm using Material UI and it's choking on the areas that I'm using the library. Hope anyone has any ideas.&lt;/p&gt;

&lt;p&gt;My repo is hosted at: &lt;a href="https://github.com/Wayne-CO/Greenstone-Wellness"&gt;https://github.com/Wayne-CO/Greenstone-Wellness&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When running gatsby build I get:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;failed Building static HTML for pages - 6.444s&lt;/p&gt;

&lt;p&gt;ERROR #95313&lt;/p&gt;

&lt;p&gt;Building static HTML failed for path "/404/"&lt;/p&gt;

&lt;p&gt;See our docs page for more info on this error:&lt;br&gt;
&lt;a href="https://gatsby.dev/debug-html"&gt;https://gatsby.dev/debug-html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;15 |   },   16 |   activeLink: {&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;17 |     color: &lt;code&gt;${theme.link.active} !important&lt;/code&gt;,&lt;br&gt;
     |                          ^   18 |   },   19 |   linkLogo: {   20 |     height: "100%",&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;WebpackError: TypeError: Cannot read property 'active' of undefined&lt;/p&gt;


&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;This is the part of my code that's running into an error during build. It can't be a misuse because on develop it's working.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const useStyles = makeStyles(theme =&amp;gt; ({
  appBar: {
    backgroundColor: "transparent",
    position: "relative",
    boxShadow: "none",
    marginBottom: props =&amp;gt; props.data.headerMb,
  },
  activeLink: {
    color: `${theme.link.active} !important`,
  }
}))
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>help</category>
      <category>gatsby</category>
    </item>
  </channel>
</rss>
