title: Using baseUrl in jsconfig.json is not working with Next.js
body: <p><a href="https://github.com/hutber/jsconfigerror" rel="nofollow noreferrer">jsconfigerror</a> is an example repository showing the jsconfig is not working.</p>
  <p>I have the following set inside my <em>jsconig.json</em> file:</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;baseUrl&quot;: &quot;./&quot;
    }
  }
  </code></pre>
  <p>However, when I do an import, it fails:</p>
  <pre class="lang-none prettyprint-override"><code>./pages/index.js
  Module not found: Can't resolve 'components/AThing' in '/var/www/gd.hutuber.com/pages'
  </code></pre>
  <p>Folder Structure</p>
  <pre><code>¬ components
     ¬ AThing
  ¬ pages
     ¬ index.js
  </code></pre>
  <h2>pages/index.js</h2>
  <pre><code>import Head from 'components/AThing'
  </code></pre>
  <p>How can I get <code>baseUrl</code> to work with Next.js?</p>