title: Uncaught ReferenceError: $ is not defined (VueJS)
body: <p>I've started a VueJS project with:</p>
  
  <pre><code>vue init webpack my-project
  </code></pre>
  
  <p>And got jQuery with npm:</p>
  
  <pre><code>npm install jquery
  </code></pre>
  
  <p>And i put this line on my main.js file:</p>
  
  <pre><code>window.$ = window.jQuery = require('jquery')
  </code></pre>
  
  <p>Either way, i can't use this piece of code: (from semantic ui)</p>
  
  <pre><code>$('.ui.rating')
    .rating()
  ;
  </code></pre>
  
  <p>Because i get this error: </p>
  
  <pre><code>Uncaught ReferenceError: $ is not defined
  </code></pre>
  
  <p>Any idea why this is happening ?</p>