title: Module not found: Error Can't resolve 'routes.js'
body: <p>Working on incorporating a React theme into my existing project. Getting the following error message and not sure how to resolve it</p>
  <pre><code>ERROR in ./src/components/navbars/DemoNavBar.js 9:0-31
  Module not found: Error: Can't resolve 'routes.js' in 'C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\src\components\navbars'     
  resolve 'routes.js' in 'C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\src\components\navbars'
    Parsed request is a module
    using description file: C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\package.json (relative path: ./src/components/navbars)   
      Field 'browser' doesn't contain a valid alias configuration
      resolve as module
        C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\src\components\navbars\node_modules doesn't exist or is not a directory      
        C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\src\components\node_modules doesn't exist or is not a directory
        C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\src\node_modules doesn't exist or is not a directory
        looking for modules in C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\node_modules
          single file module
            using description file: C:\Users\15512\Desktop\django-project\pee
  rplatform\peerplatform-fe\package.json (relative path: ./node_modules/routes.js)
              no extension
                Field 'browser' doesn't contain a valid alias configuration  
                C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\node_modules\routes.js.js doesn't exist
              .json
        ...
        C:\Users\15512\Desktop\django-project\peerplatform\node_modules doesn't exist or is not a directory
        C:\Users\15512\Desktop\django-project\node_modules doesn't exist or is not a directory
        C:\Users\15512\Desktop\node_modules doesn't exist or is not a directory
        looking for modules in C:\Users\15512\node_modules
          single file module
            using description file: C:\Users\15512\package.json (relative path: ./node_modules/routes.js)
              no extension
                Field 'browser' doesn't contain a valid alias configuration  
                C:\Users\15512\node_modules\routes.js doesn't exist
              .web.mjs
        ...   
          C:\Users\15512\node_modules\routes.js doesn't exist
        C:\Users\node_modules doesn't exist or is not a directory
        C:\node_modules doesn't exist or is not a directory
        looking for modules in C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\node_modules
          single file module
            using description file: C:\Users\15512\Desktop\django-project\pee
  rplatform\peerplatform-fe\package.json (relative path: ./node_modules/routes.js)
              no extension
                Field 'browser' doesn't contain a valid alias configuration  
                C:\Users\15512\Desktop\django-project\peerplatform\peerplatform-fe\node_modules\routes.js doesn't exist
              .web.mjs
  ...
   @ ./src/layouts/Admin.js 9:0-61 63:38-48
   @ ./src/App.js 14:0-45
   @ ./src/index.js 8:0-24 19:33-36
  </code></pre>
  <p>This is the structure of my project</p>
  <pre><code>--peerplatform-fe
  ----node_modules
  ----src
  -------components
  -------views
  -------layouts
      routes.js
  </code></pre>
  <p>Here is my routes.js file</p>
  <pre><code>import Dashboard from &quot;./views/Dashboard.js&quot;;
  import TableList from &quot;./views/Tables.js&quot;;
  
  var routes = [
    {
      path: &quot;/dashboard&quot;,
      name: &quot;User Profile&quot;,
      // icon: &quot;nc-icon nc-single-02&quot;,
      component: Dashboard,
      layout: &quot;/admin&quot;,
    },
    {
      path: &quot;/tables&quot;,
      name: &quot;Table List&quot;,
      // icon: &quot;nc-icon nc-tile-56&quot;,
      component: TableList,
      layout: &quot;/admin&quot;,
    },
  ];
  export default routes;
  </code></pre>