You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write test for component Accordion who use scopedSlots with custom component.
But when run my test, the custom component in scoped slot is not register.
I register my component in localVue but it seems doesn't work.
What is expected?
My component custom inner scoped slot should be register
What is actually happening?
My component custom inner scoped slot is not register
[Vue warn]: Unknown custom element: <go-collapse> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
The text was updated successfully, but these errors were encountered:
My observation is that when you register the component with the global Vue class, it works (regardless if you use localVue or not). But that pollutes the global Vue class. If you register it on localVue and use that when mounting the component, then the error mentioned above is displayed.
It also only happens with scoped slots because with regular slots the custom element is recognized after you register it on localVue.
Version
1.0.0-beta.25
Reproduction link
https://github.com/renanbronchart/gommette/tree/feat/components_accordion
Steps to reproduce
I write test for component Accordion who use scopedSlots with custom component.
But when run my test, the custom component in scoped slot is not register.
I register my component in localVue but it seems doesn't work.
What is expected?
My component custom inner scoped slot should be register
What is actually happening?
My component custom inner scoped slot is not register
My test
My errror in console
The text was updated successfully, but these errors were encountered: