title: Module not found: Can't resolve when creating a module
body: <p>I'm making a module however im getting this error, when i import it in my test application.</p>
  
  <blockquote>
    <p>../fetchModule/index.js Module not found: Can't resolve './Myfetch' in
    '/Users/******/nodework/fetchModule'</p>
  </blockquote>
  
  <p>here is the folder structure</p>
  
  <p><a href="https://i.stack.imgur.com/PXg2C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PXg2C.png" alt="enter image description here"></a></p>
  
  <p>and here is the package.json</p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "fetchmodule",
    "version": "1.0.0",
    "description": "a fetch module for our project",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "build": "./node_modules/.bin/babel src --out-file index.js"
    },
    "peerDependencies": {
      "react": "^16.6.6",
      "react-dom": "^16.6.3",
      "axios": "^0.19.0"
    },
    "author": "",
    "license": "ISC",
    "dependencies": {
      "@babel/cli": "^7.4.4",
      "@babel/core": "^7.4.5",
      "@babel/preset-env": "^7.4.5",
      "@babel/preset-react": "^7.0.0",
      "react": "^16.8.6",
      "react-dom": "^16.8.6"
    },
    "devDependencies": {
      "@babel/plugin-proposal-class-properties": "^7.4.4",
      "axios": "^0.19.0"
    }
  }
  </code></pre>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>import React, {Component} from 'react';
  import Myfetch from  './Myfetch';
  
  export default class Fetch extends Component {
   .......
  
  }
  </code></pre>
  
  <p><strong>MyFetch</strong></p>
  
  <pre><code>import React, {Component} from 'react';
  import axios from 'axios';
  
  export default class MyFetch extends Component {
    .....
  }
  </code></pre>