Vue 2 component converted to Vue 3, slots and inject not working
gnunespedroso opened this issue · 1 comments
I've cloned the repository and tested some features between a Vue 3 shell consuming a Vue 2 component (eg.: Button), everything works perfectly fine until I encountered two issues.
The vue 2 component that is being transformed to Vue 3, using the function "vue2ToVue3", has problems related to slots and inject.
Let's say that the parent component (vue 3) provides some information for the vue 2 component, and this vue 2 component injects it, the inject doesn't work because it seems that is not being defined when transforming to vue 3.
The same happens for slots, if the vue 2 component has a slot inside it, example for a Button component:
<button> <slot/> </button>
And the parent uses it:
<Button> Click me! </Button>
The "Click me!" message turns into "undefined".
Any idea how we can solve this problem?