title: Error: Unable to resolve module 'internal_package'
body: <h2>Background</h2>
  <p>I am using yarn as a package manager and I am attempting to create a mono-repo for a react-native application in conjunction with a web application using a common repo like so.</p>
  <p><a href="https://i.stack.imgur.com/GYoSu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GYoSu.png" alt="enter image description here" /></a></p>
  <h2>Issue</h2>
  <p>I am using yarn workspaces. I cd'ed into the <code>common</code> directory and ran <code>yarn link</code> and then went into the <code>app</code> directory and linked the package name like with this command <code>yarn link &quot;@wow/common&quot;. Everything seemed to work as &quot;@wow/common&quot; showed up in </code>mono-repo/packages/app/node_modules<code>. I ran </code>yarn react-native start --reset-cache<code>then</code>yarn android` and I still receive this error.</p>
  <pre><code>yarn run v1.22.4
  $ react-native start
                                                            
                 ######                ######               
               ###     ####        ####     ###             
              ##          ###    ###          ##            
              ##             ####             ##            
              ##             ####             ##            
              ##           ##    ##           ##            
              ##         ###      ###         ##            
               ##  ########################  ##             
            ######    ###            ###    ######          
        ###     ##    ##              ##    ##     ###      
     ###         ## ###      ####      ### ##         ###   
    ##           ####      ########      ####           ##  
   ##             ###     ##########     ###             ## 
    ##           ####      ########      ####           ##  
     ###         ## ###      ####      ### ##         ###   
        ###     ##    ##              ##    ##     ###      
            ######    ###            ###    ######          
               ##  ########################  ##             
              ##         ###      ###         ##            
              ##           ##    ##           ##            
              ##             ####             ##            
              ##             ####             ##            
              ##          ###    ###          ##            
               ###     ####        ####     ###             
                 ######                ######               
                                                            
                   Welcome to React Native!
                  Learn once, write anywhere
  
  
  
  To reload the app press &quot;r&quot;
  To open developer menu press &quot;d&quot;
  
  [Tue Apr 07 2020 22:20:19.850]  BUNDLE  ./index.js 
  
  error: Error: Unable to resolve module `@wow/common` from `App.tsx`: @wow/common could not be found within the project.
  
  If you are sure the module exists, try these steps:
   1. Clear watchman watches: watchman watch-del-all
   2. Delete node_modules: rm -rf node_modules and run yarn install
   3. Reset Metro's cache: yarn start --reset-cache
   4. Remove the cache: rm -rf /tmp/metro-*
      at ModuleResolver.resolveDependency (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15)
      at ResolutionRequest.resolveDependency (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
      at DependencyGraph.resolveDependency (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
      at Object.resolve (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/lib/transformHelpers.js:267:42)
      at dependencies.map.result (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:434:31)
      at Array.map (&lt;anonymous&gt;)
      at resolveDependencies (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:431:18)
      at /home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33
      at Generator.next (&lt;anonymous&gt;)
      at asyncGeneratorStep (/home/dkendall/Projects/personal/react-projs/mono-repo/packages/app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
  Done in 20.64s.
  </code></pre>
  <p>Here is my <strong>package.json</strong> for <em>@wow/common</em></p>
  <pre><code>{
    &quot;name&quot;: &quot;@wow/common&quot;,
    &quot;description&quot;: &quot;Common codebase for web and native apps&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;main&quot;: &quot;dist/index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;build&quot;: &quot;tsc&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;@types/react-native&quot;: &quot;0.62.1&quot;,
      &quot;bufferutil&quot;: &quot;^4.0.1&quot;,
      &quot;react&quot;: &quot;^16.11.0&quot;,
      &quot;react-native&quot;: &quot;^0.62.1&quot;,
      &quot;utf-8-validate&quot;: &quot;^5.0.2&quot;
    }
  }
  
  </code></pre>
  <h2>What I tried</h2>
  <p>I tried all the recommend steps in the error output</p>
  <pre><code> 1. Clear watchman watches: watchman watch-del-all
   2. Delete node_modules: rm -rf node_modules and run yarn install
   3. Reset Metro's cache: yarn start --reset-cache
   4. Remove the cache: rm -rf /tmp/metro-*
  </code></pre>
  <p>I tried using <code>import {App} from '../common/dist/index.js'</code> as opposed to <code>import {App} from '@wow/common'</code></p>
  <p>If anyone can offer any solutions, I would greatly appreciate it.</p>