title: deploying gatsby (v2) to netlify errors
body: <p>I'm having some issues deploying to netlify. These are the errors I receive:</p>
  
  <p><code>
  Error: ./src/pages/index.js
  12:55:30 PM:   Module not found: Error: Can't resolve '../components/Featured' in '/opt/build  /repo/src/pages'
  12:55:30 PM:   resolve '../components/Featured' in '/opt/build/repo/src/pages'
  12:55:30 PM:     using description file: /opt/build/repo/package.json (relative path: ./src/p  ages)
  12:55:30 PM:       Field 'browser' doesn't contain a valid alias configuration
  </code></p>
  
  <p>For some reason it can't find the components. Building locally works fine. </p>
  
  <p>I used gatsby-starter w styled-components. </p>
  
  <p>things I tried:
  I had some local building errors regarding the window undefined. I fixed these by conditionally including them as <a href="https://www.gatsbyjs.org/docs/debugging-html-builds/" rel="nofollow noreferrer">the manual proposes</a>.</p>
  
  <p>After applying this, I started receiving console logs from ‘workbox’.</p>
  
  <p>(btw this is my first time trying to deploy to netlify)
  also the error <code>Field 'browser' doesn't contain a valid alias configuration</code> keeps repeating in the logs</p>
  
  <p><a href="https://pastebin.com/VZDuTrEm" rel="nofollow noreferrer">here's a link to the full log</a> I get from netlify</p>