I wanna import vue multiselect in my Vue app which I made withhout cli. it's plain js and all the content are in my html. but I cannot import libraries like Vue Multiselect :( In HTML:
<body>
<div id="app">
<multiselect v-model="value" tag-placeholder="Add this as new tag" placeholder="Search or
add a tag" label="name" track-by="code" :options="options" :multiple="true" :taggable="true" @tag="addTag"></multiselect>
</div>
<script src="../assets/js/vue.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script type="module" src="../assets/js/user-list.js">
</script>
</body>
In JS:
new Vue({
data() { return {} }
}).$mount(#app)
I can't import it like how I used to in vue cli, like:
import multiselect from 'vue-multiselect'
and
components: { multiselect}
when I import, there's errors like:
Uncaught TypeError: Error resolving module specifier “vue”. Relative module specifiers must start with “./”, “../” or “/”.