title: Laravel Vite - Configuration does not exist
body: <p>I tried to create Laravel project with Vite and followed Laravel documentation. But the problem occurred when I tried to access the resource and it says <strong>Configuration &quot;resources/js/app.js&quot; does not exist.</strong>.</p>
  <p>This is <code>vite.config.js</code> file:</p>
  <pre><code>import { defineConfig } from 'vite';
  import laravel from 'laravel-vite-plugin';
  import vue from '@vitejs/plugin-vue'
  
  export default defineConfig({
      plugins: [
          laravel([
              'resources/css/app.css',
              'resources/js/app.js',
          ]),
          vue(),
      ],
  });
  </code></pre>
  <p>And this is my blade file:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&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;Test&lt;/title&gt;
  
      {{-- @vite('resources/css/app.css') --}}
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id=&quot;app&quot;&gt;&lt;/div&gt;
  
      @vite('resources/js/app.js')
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AAXV6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AAXV6.png" alt="Error message" /></a></p>
  <p><a href="https://i.stack.imgur.com/0ueBG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ueBG.png" alt="Resources directory" /></a></p>
  <p>Anyone know the problem?</p>