Skip to content

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

@dannydebug

Description

@dannydebug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions