I'm working on an old project that has the next:
So, I want to upgrade Vue Select to the next version(3.0.0) and maybe upgrade it up to date the get all the features. But when I upgrade it I get the next error in the dev console:
[Vue warn]: Error in render function: (found in <VSelect>)
TypeError: t._g is not a function
at Proxy.eval (eval at <anonymous> (app.js:67:5888), <anonymous>:1:18314)
at VueComponent.Vue._render (eval at <anonymous> (app.js:12:28224), <anonymous>:3609:22)
at VueComponent.updateComponent (eval at <anonymous> (app.js:12:28224), <anonymous>:2158:21)
at Watcher.get (eval at <anonymous> (app.js:12:28224), <anonymous>:2469:25)
at new Watcher (eval at <anonymous> (app.js:12:28224), <anonymous>:2452:12)
at mountComponent (eval at <anonymous> (app.js:12:28224), <anonymous>:2162:17)
at VueComponent.Vue$3.$mount (eval at <anonymous> (app.js:12:28224), <anonymous>:7252:10)
at VueComponent.Vue$3.$mount (eval at <anonymous> (app.js:12:28224), <anonymous>:9301:16)
at init (eval at <anonymous> (app.js:12:28224), <anonymous>:2931:13)
at createComponent (eval at <anonymous> (app.js:12:28224), <anonymous>:4656:9)
Vue select import
import vSelect from 'vue-select'
Vue.component('v-select', vSelect)
I'm trying with the example that Vue Select says
<v-select :options="['Canada', 'United States']"></v-select>
The v-select component is mounted but not rendered. If I check it from the Vue Dev Tools Panel I can see it and check everything in the v-select component.
I saw that Vue Select from 2.6.4 to 3.0.0 upgraded Webpack to 4. I don't know if that is the problem and is incompatible with my current project.
Also, I checked the documentation https://vue-select.org/guide/upgrading.html but nothing seems like it fits with my problem.
I think that if I upgrade Webpack and Vue could work, but this option at the moment is not possible and according to the Vue Select documentation, the component is compatible with Vue 2.x.x
Has anyone else experienced this or something similar?
Thank you in advance! I appreciate your help!