Trying to import import VueFormMultiselect from '@vueform/multiselect/multiselect.vue2.js' fails in both vite and webpack with an error message like follows:
[vite] Internal server error: Failed to resolve import "@vueform/multiselect/multiselect.vue2.js" from "src/components/TheWelcome.vue". Does the file exist?
It works if the dist folder is added inbetween, i.e.
import VueFormMultiselect from '@vueform/multiselect/dist/multiselect.vue2.js';
However, typescript then complains about not having any type declarations for this file, so you additionally need the following multiselect.d.ts:
Version
Description
Trying to import
import VueFormMultiselect from '@vueform/multiselect/multiselect.vue2.js'
fails in both vite and webpack with an error message like follows:It works if the
dist
folder is added inbetween, i.e.However, typescript then complains about not having any type declarations for this file, so you additionally need the following
multiselect.d.ts
:Demo
I don't know how to set up a jsfiddle with this specific setup. My apologies.