title: How to solve Uncaught SyntaxError: Unexpected token '<' using Vue JS / Laravel
body: <p>Hi developers i currently have issue this project is old work of developer, this is already perfectly working on our server and there is no error. however after i pull it on our server and run the project on my localhost it gives Uncaught SyntaxError: Unexpected token '&lt;' after i run watch watch. there is no error on my run watch and php artisan serve.</p>
  <p><strong>Question</strong>: Why does my app.js file has an error of that.?</p>
  <p>I currently use Laravel as backend and Vue Js as front end</p>
  <p><a href="https://i.stack.imgur.com/Qyv2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qyv2Y.png" alt="error found on my console" /></a></p>
  <p>app.blade.php</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang=&quot;{{ app()-&gt;getLocale() }}&quot;&gt;
      &lt;head&gt;
          
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;link rel=&quot;icon&quot; type=&quot;text/css&quot; href=&quot;{{asset('../public/img/tempologo.png')}}&quot;&gt;
          &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui&quot;&gt;
          &lt;meta name=&quot;csrf-token&quot; content=&quot;{{ csrf_token() }}&quot;&gt;
          &lt;title&gt;Mywebsite&lt;/title&gt;
          &lt;title&gt;
              @yield('title')
          &lt;/title&gt;
          &lt;!-- Fonts --&gt;
          &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;{{asset('css/app.css')}}&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;{{asset('css/materialicon.css')}}&quot;&gt;
          {{-- &lt;link href=&quot;https://fonts.googleapis.com/css?family=Raleway:100,600&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; --}}
      &lt;/head&gt;
      
      &lt;body&gt;
          &lt;div id=&quot;app&quot;&gt; &lt;/div&gt;
      &lt;/body&gt;
      &lt;script src=&quot;{{ asset('js/app.js') }}&quot;&gt;&lt;/script&gt;
      
  &lt;/html&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/vvrdI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvrdI.png" alt="Inspection Console" /></a></p>