title: React - Import module from wrong path
body: <p>I'm developing a library of components for my projects in React, but I had some problem with it. 
  I have published the library in NPM, the problem is that, after installing the library, I try to import as other components </p>
  
  <pre><code>import React, { Fragment } from 'react';
  import { DatePickerCustom, UploadFile } from 'splibkoare';
  import { Greetings } from 'library-test-core-react'
  
  const DatePicker = () =&gt; {
  
  console.log(Greetings)
  
  return (
      &lt;Fragment&gt;
          &lt; DatePickerCustom /&gt;
          &lt;UploadFile /&gt;
      &lt;/Fragment&gt;
  )
  }
  export default DatePicker
  </code></pre>
  
  <p>When compiling, it tries to import the file from a wrong path</p>
  
  <pre class="lang-none prettyprint-override"><code>Windows PowerShell
  Copyright (C) Microsoft Corporation. All rights reserved.
  Failed to compile.
  
  ./src/App.js
  Module not found: Can't resolve 'library-test-core-react' in C:\Repos\myComponents\my_components\src\myComponent|views'  
  </code></pre>
  
  <p>I don't know if it is an error in the webpack config or what. Can anyone please help me? Cheers.</p>
  
  <p>EDIT: I fixed it with the good old method "turn it off, then turn it on again"</p>