I'm making a website using Javascript and Vue.js and found a plugin for making a 3d carousel https://www.bestjquery.com/?ynVfL3CE,but when i import these i get the error "Uncaught SyntaxError: Cannot use import statement outside a module".My code below.
<html>
<head>
<script src="js/vue.js"></script>
<script src="js/carousel.js"></script>
</head>
<body>
<div id="example">
<carousel-3d :autoplay="true" :autoplay-timeout="5000" :display="3">
<slide v-for="(slide, i) in slides" :index="i">
<span class="title">You know</span>
<p>You know, being a test pilot isn't always the healthiest business in the world.</p>
</slide>
</carousel-3d>
</div>
<script>
new Vue({
el: '#example',
data: {
slides: 7
},
components: {
'carousel-3d': Carousel3d.Carousel3d,
'slide': Carousel3d.Slide
}
})
</script>
Code from carousel.js
import Vue from 'vue';
import Carousel3d from 'vue-carousel-3d';
Vue.use(Carousel3d);