Skip to content

Use with mount as component is not working #22

@Lazac92

Description

@Lazac92

The problem

The usage mentioned here is not working for me.

"vue": "2.6.12",
"vue-videojs7": "1.0.2"

When I tried, I get the Vue's unknown component error: [Vue warn]: Unknown custom element: <video-player> - did you register the component correctly?

I Inspected the code and find there is no export for videoPlayer, only as default.

Possible solutions

1. For the author

Add this to vue-videojs7/index.js file:

export { videoPlayer }

2. For users of library

import videojs7 from 'vue-videojs7'
export default {
	components: { videoPlayer: videojs7.videoPlayer }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions