[Vuejs]-VueJS: Error – Uncaught ReferenceError: $ is not defined

0👍

Try to import jQuery in the component, or define $ globally in your application:

import $ from 'jquery'

Also, you can do this in js:

document.getElementsByClassName('example-1')

Leave a comment