2👍
✅
You’ll notice there are actually two components in the package. One for vue 1.* and one for vue 2.*. You just need to import the correct one.
import mySwitch from 'vue-switch/switch-2.vue';
Source:stackexchange.com