title: Module not found: Error: Can't resolve | Vue Router
body: <p>I am new to vue and laravel. I am trying to import my component but I am getting this error.</p>
  
  <p><strong>ERROR in ./resources/js/router.js
  Module not found: Error: Can't resolve './pages/frontend/HomepageComponent'</strong></p>
  
  <p>router.js</p>
  
  <pre><code>import Vue from 'vue'
  import VueRouter from 'vue-router'
  import HomepageComponent from './pages/frontend/HomepageComponent'
  
  Vue.use(VueRouter)
  
  const routes = [
  {
      path: '/',
      component: HomepageComponent
  }
  ]
  
  export default new VueRouter({
      routes
  })
  </code></pre>
  
  <p>I searched everywhere but I am not being able to figure out how to solve this issue.</p>
  
  <p>Please help me.</p>