I'm trying to create a Vue component that uses a premade css style, but the problem is that i keep getting the following error, since the template uses bootstrap and bootstrap uses some jquery:
custom.js?2435:952 Uncaught ReferenceError: jQuery is not defined
Code:
component.vue
<template>
<html>
<body>
...
</body>
</html>
</template>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="./Crypo/assets/js/jquery-3.4.1.min.js"></script>
<script src="./Crypo/assets/js/popper.min.js"></script>
<script src="./Crypo/assets/js/amcharts-core.min.js"></script>
<script src="./Crypo/assets/js/amcharts.min.js"></script>
<script src="./Crypo/assets/js/jquery.mCustomScrollbar.js"></script>
<script src="./Crypo/assets/js/custom.js"></script>
<style scoped src="./Crypo/assets/css/style.css"></style>
The Crypo folder is in the same folder as component.vue. I don't understand why isn't jQuery defined even though i'm importing it. I tried to add to my code
import jQuery from 'jquery'
But i'm still getting the error. Any solution to this?