title: How to import packages with @ in React?
body: <p>I am building an npm package.</p>
  <p>When a user is using my package, I wish to for them to import the packages with the &quot;@&quot; like this:</p>
  <pre><code>import { Package } from &quot;@initial/package&quot;
  </code></pre>
  <p>I added this to my tsconfig.json:</p>
  <pre><code>    &quot;baseUrl&quot;: &quot;.&quot;,
      &quot;paths&quot;: {
        &quot;@&quot;: [&quot;src&quot;],
        &quot;@/*&quot;: [&quot;src/*&quot;],
        &quot;@initial&quot;: [&quot;src/components&quot;]
      }
  </code></pre>
  <p>but when I do an import:</p>
  <pre><code>import { Package } from &quot;@initial/package&quot;;
  </code></pre>
  <p>It's throwing this error: Cannot find module '@initial' or its corresponding type declarations.</p>
  <p>I have my src and tsconfig.json in the root.</p>