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

Use with mount as component is not working #22

Open
Lazac92 opened this issue May 20, 2021 · 0 comments
Open

Use with mount as component is not working #22

Lazac92 opened this issue May 20, 2021 · 0 comments

Comments

@Lazac92
Copy link

Lazac92 commented May 20, 2021

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 }
}
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

No branches or pull requests

1 participant