Options from the extended component are not inherited.
antoumpas opened this issue · 0 comments
antoumpas commented
Hello,
Component options of the base component are not inherited when extending a component.
In the following example the browser throws an error "Error in created hook: "TypeError: Cannot set properties of undefined":
const baseComponent = {
template: `<div>{{ test }}</div>`,
props: {
test: {
type: Number,
},
},
};
const component = {
extends: baseComponent,
};
customElements.define('my-element', wrap(Vue, component));