title: React Monorepo yarn workspaces + typescript + absolute imports
body: <p>I'm having issues setting up an React project with yarn workspaces and typescript.
  My folder structure is:</p>
  
  <pre><code>-root
   -package.json
   -workspaces
    -web
    -common
  </code></pre>
  
  <p>and my <code>package.json</code> file is:</p>
  
  <pre><code>{
    "name": "my-project-name",
    "private": true,
    "workspaces": [
    "workspaces/web",
    "workspaces/common"
    ],
    "moduleFileExtensions": [
        "ts",
        "tsx",
        "js",
        "jsx",
        "json",
        "node"
      ]
  }
  </code></pre>
  
  <p>My issue is: when I import files on <code>web</code> from the <code>common</code> project, it works fine if it's a <code>.js</code> file, but fails with <code>TypeError: Object(...) is not a function</code> when using <code>.ts</code> or <code>.tsx</code> files.</p>
  
  <p>Any ideas on what I might be missing?</p>