title: Can't import Vue file in JS file
body: <p>I am following a tutorial on PHP + Vue development but am getting stuck at the point where I have to import a Vue file inside my app.js file. When executing npm run hot the terminal says that the module was not found. Full error:</p>
  <blockquote>
  <p>Module not found: Error: Can't resolve './vue/app' in 'C:\xampp\htdocs\first-app\first-app\resources\js'</p>
  </blockquote>
  <p>My folder structure is as follows:</p>
  <pre><code>resources/
  ├─ css/
  ├─ js/
  │  ├─ app.js &lt;-- File where I import the Vue file
  │  ├─ vue/
  │  │  ├─ app.vue &lt;-- Vue file
  ├─ views/
  │  ├─ welcome.blade.php  &lt;-- View where I import app.js
  </code></pre>
  <p>app.vue, the Vue file in question:</p>
  <pre><code>&lt;template&gt;
    &lt;div&gt;Hello&lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {}
  &lt;/script&gt;
  </code></pre>
  <p>App.js, the file where I try to import the Vue file:</p>
  <pre><code>require('./bootstrap');
  
  import Vue from 'vue'
  import App from './vue/app'
  
  const app = new Vue({
      el: '#app',
      components: { App }
  })
  </code></pre>
  <p>Finally, welcome.blade.php where I use the app.js file:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;{{ str_replace('_', '-', app()-&gt;getLocale()) }}&quot;&gt;
      &lt;head&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  
          &lt;title&gt;Laravel&lt;/title&gt;
      &lt;/head&gt;
      &lt;body class=&quot;antialiased&quot;&gt;
          &lt;div id=&quot;app&quot;&gt;
              &lt;app&gt;&lt;/app&gt;
          &lt;/div&gt;
      &lt;/body&gt;
      &lt;script src=&quot;{{ mix('js/app.js') }}&quot;&gt;&lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  <p>It is also good to note that I use VSCode, and when I try to autocomplete the import is doesn't work. It does recognize the vue folder but not the app.vue file in it.</p>
  <p>Can anyone spot what I am doing wrong? Any answers would be appreciated!</p>