Skip to content

Inheriting components & directives #1963

Closed
@skirtles-code

Description

@skirtles-code

Version

3.0.0-rc.8

Reproduction link

https://jsfiddle.net/skirtle/p469rhax/9/

Steps to reproduce

Note the console error: 'Failed to resolve component: SayHi'.

If you change MyChild: CompB to MyChild: CompA it all works fine.

What is expected?

Extending a component should inherit and merge the components and directives options just like it did in Vue 2.

What is actually happening?

Only the render function gets inherited.


The example is intended to simulate a CLI project with a component that doesn't define its own <template> section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions