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

error - ReferenceError: EventTarget is not defined #937

Closed
Jairwin-L opened this issue Jun 2, 2023 · 5 comments
Closed

error - ReferenceError: EventTarget is not defined #937

Jairwin-L opened this issue Jun 2, 2023 · 5 comments

Comments

@Jairwin-L
Copy link

Jairwin-L commented Jun 2, 2023

install using pnpm, then pnpm dev
image
env info

"@vimeo/player": "^2.20.1",
"react": "18.2.0",
"react-dom": "18.2.0",

guess there might be something wrong here: https://github.com/vimeo/player.js/blob/master/src/lib/functions.js#L117

@salmoro
Copy link
Contributor

salmoro commented Jun 2, 2023

@Jairwin-L I was unable to reproduce this issue.

See the following Stackblitz which has React and @vimeo/player and all seems to work well.
https://stackblitz.com/edit/stackblitz-starters-nmzj5j?file=src%2FApp.tsx

If you can help us reproduce this issue or if you can provide more details about your setup and code we'd be happy to investigate further.

@Jairwin-L
Copy link
Author

let me think about it

@Jairwin-L
Copy link
Author

@salmoro I re-reproduced this problem. It seems to be because of the node version. There are two node versions on my computer: 14.19.3 and 18.0.0. The 14 version will have this error, and the 18 version will not

@rs-r2d2
Copy link

rs-r2d2 commented Nov 3, 2023

If I rollback vimeo/player version 2.18.0 it works with server side with node 14.18

@bdougherty
Copy link
Contributor

Not sure what happened in 2.19 to break it, but I'm going to close this one out because Node 20 is now the LTS version.

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

4 participants