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

Invalid target for null#trigger; must be a DOM node or evented object when Strict mode is enabled #124

Open
dannydebug opened this issue Apr 17, 2024 · 0 comments

Comments

@dannydebug
Copy link

dannydebug commented Apr 17, 2024

Using default "in-page" embedType with reacts strict mode throws the following error:

image

Disabling the strict mode resolves it, however this is not ideal. I was hoping this would be fixed in newly published version 1.5.0., but that only fixed the double rendering of the video element.

The video is mounted and plays, but this error gets thrown.

I can see another issue being open that is mentioning the same problem - #115

Doing some research brought me to these two issues that were reported for videojs, and both got resolved and solutions merged:

  1. React 18 StrictMode does not work with typical usage of video.jsReact 18 StrictMode does not work with typical usage of video.js videojs/video.js#7746
  2. fix(docs): Update react guide for React 18

I would appreciate any updates on this issue.

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