Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options from the extended component are not inherited. #119

Open
antoumpas opened this issue Feb 26, 2022 · 0 comments · May be fixed by #120
Open

Options from the extended component are not inherited. #119

antoumpas opened this issue Feb 26, 2022 · 0 comments · May be fixed by #120

Comments

@antoumpas
Copy link

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));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant