I want to connect other .js file to my .vue file.
So, i use theese line of code in my .vue file:
import jQuery from 'jquery'
import './assets/js/script'
But, the console in Chrome (and other browsers) say:
Uncaught ReferenceError: jQuery is not defined
I don't get why is it happening because i import jQuery var. and i use jQuery(). structure in my .js file
UPD: Sure, i have used npm install jquery;
I have also tried to use var jQuery = require("jquery")