title: Why my javascript code is not executing and says not a valid mime type?
body: <p>Here I have included the javascripts but I got mime type is not valid:</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/js/components.js') }}&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/js/custom.js') }}&quot;&gt;&lt;/script&gt;
  
  &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/vendors/slimscroll/js/jquery.slimscroll.min.js') }}&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/vendors/raphael/js/raphael-min.js') }}&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/vendors/d3/js/d3.min.js') }}&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;{{ asset('/dashboard/vendors/c3/js/c3.min.js') }}&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>And I am getting the error below:</p>
  <pre><code>The script from “http://localhost/Project/public/dashboard/vendors/flotchart/js/jquery.flot.pie.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.[Learn More] home
  Loading failed for the &lt;script&gt; with source “http://localhost/Project/public/dashboard/vendors/flotchart/js/jquery.flot.pie.js”. home:2091:1
  The script from “http://localhost/Project/public/dashboard/vendors/flot.tooltip/js/jquery.flot.tooltip.min.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.[Learn More]
  </code></pre>
  <p>What is the problem? Please help.</p>