title: ReactJS import component outside src/ directory
body: <p>I have two react apps(A-app, B-app). I need to import one component from A-app to B-app.
  But when I tried to do this I have seen this error.</p>
  
  <pre><code>./src/App.js
  Module not found: You attempted to import ../../src/components/Dashboard/container which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.
  </code></pre>
  
  <p>I tried to do symlink on this component in B-app node_modules. But it didn`t work. </p>
  
  <p>Also I tried to create .env file in root project directory and put this <code>NODE_PATH=src/</code>
  in file. But this solve doesn`t work too.</p>
  
  <p>How can I fix this?</p>
  
  <p>Sorry for my English.</p>