title: "Cannot resolve dependency" when importing local dependency in monorepo - Parcel, Typescript
body: <p>I am trying to set up a monorepo with parcel and typescript. I have four packages: f-app, f-app-core, f-app-hub, f-app-notes.</p>
  
  <p>when I try to import from one package to another, I get <code>Cannot resolve dependency</code></p>
  
  <p>For example: I want to import f-app-hub/index.tsx in f-app/index.tsx.</p>
  
  <pre><code>// f-app/index.tsx
  
  import React from 'react'
  
  import Hub from 'f-app-hub' // this fails
  
  const App = () =&gt; {
    return &lt;Hub /&gt;
  }
  
  </code></pre>
  
  <p>I get <code>Cannot resolve dependency 'f-app-hub'</code> during build.
  However, VS Code shows no errors and is able to correctly identify and source f-app-hub. cmd+space sends me to the correct file.</p>
  
  <p>Importing f-app-hub as a relative path also works.</p>
  
  <pre><code>// f-app/index.tsx
  
  import React from 'react'
  
  import Hub from '../f-app-hub' // this works
  
  const App = () =&gt; {
    return &lt;Hub /&gt;
  }
  
  </code></pre>
  
  <p>Here is ny tsconfig:</p>
  
  <pre><code>{
    "compilerOptions": {
      "jsx": "react",
      "esModuleInterop": true,
      "baseUrl": "packages",
      "rootDir": ".",
      "paths": {
        "~/*": ["packages/*"]
      },
    },
    "include": ["packages/**/*"]
  }
  
  </code></pre>
  
  <p>any ideas?</p>