title: REACT Module not found: Can't resolve '../http-common'
body: <p>I found this error :</p>
  <p>&quot;Module not found: Can't resolve '../http-common'&quot; when a start the react project</p>
  <p>I already try to removing package-lock.json and the node-modules folder, run npm install and then npm start again</p>
  <p>But it's doesn't work and it failed to compile</p>
  <pre><code>import React from 'react';
  import http from &quot;../http-common&quot;;
  
  class PersonnageDataService{
      getAll(){
          return http.get(&quot;/personnages&quot;);
      }
  
      get(id){
          return http.get(`/personnages/${id}`);
      }
  
      create(data){
          return http.post(&quot;/personnages&quot;, data);
      }
  
      update(id, data){
          return http.put(`/personnages/${id}`, data);
      }
  
      delete(id){
          return http.delete(`/personnages/${id}`);
      }
  
      deleteAll(){
          return http.delete(`/personnages`);
      }
  
  }
  
  export default new PersonnageDataService();
  </code></pre>
  <p>and this is my package.json file</p>
  <pre><code>{
    &quot;name&quot;: &quot;mearnclient&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.5&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      &quot;axios&quot;: &quot;^0.21.0&quot;,
      &quot;bootstrap&quot;: &quot;^4.5.3&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-bootstrap&quot;: &quot;^1.4.0&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
      &quot;react-scripts&quot;: &quot;4.0.0&quot;,
      &quot;web-vitals&quot;: &quot;^0.2.4&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    }
  }
  </code></pre>
  <p>Do you have any solutions ?</p>