-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Importing OvenPlayer is undefined even though in debugger it is not. #124
Comments
@walsong Hi. Because OvenPlayer is not webpack modularized. Instead of module, OvenPlayer is property of window object. So you can access from debugger. and you can access it simply window.OvenPlayer. |
@SangwonOh thank you,
when I do this: also note that in place of "player", I had this My code is as follows:
|
Hi. How did you include scripts? And did you include dashjs? |
My imports currently look like this:
Also tried this import: |
How about try using It seems webpack is not working properly. |
Same error when I tried this:
|
@walsong Hi. Are you making any progress? We could't reproduce the problem. Our demo page Viewing the source code of demo page may help you to solve the problem. |
Actually, I did not have too much time to spend on solving the problem. I decided to use another player instead. Thanks though, perhaps in a couple of weeks I will have a look again. |
Good luck @walsong . We hope you visit here soon. Thanks. |
@walsong Can you let me know what other player you used? Thanks |
When I import in vue OvenPlayer like this after installing it:
import { OvenPlayer } from 'OvenPlayer'
and then do
OvenPlayer("player", {})
, I get the error"Type Error: cannot read property create of undefined"
When I do
console.log(OvenPlayer)
, I get 'undefined' also.However, in the debugger I have access to OvenPlayer which is not undefined but this:
Object {playerList: Array(0), create:, getPlayerList:, ...}
Is the issue with webpack?
The text was updated successfully, but these errors were encountered: