Skip to content

Classes decorated with @Component can not extend from a base class. Inherency is temporarily disabled for stencil components. #1127

@gusterwoei

Description

@gusterwoei

Stencil version:

@stencil/core@0.13.2

I'm submitting a:

[x] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

  1. Run npm start
  2. Output:
Classes decorated with @Component can not extend from a base class. Inherency is temporarily disabled for stencil components.

Expected behavior:
npm start successfully

Steps to reproduce:
Run npm start

Other information:
I went through the CHANGELOG and found out that since version 0.12.0. The compiler prevents any inheritance for @Component decorated class. I wonder why this? It seems logical for component classes to extend a base class with common non-component related logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions