-
Notifications
You must be signed in to change notification settings - Fork 122
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
navigator is not defined #131
Comments
I get the same thing |
Sounds like you're both server side rendering. A video can't be server side rendered. You should check and render a placeholder when rendering on the server. |
Thank You for Youre answer. Can You changing this component for control this problem?
--
Roman
|
Is there a solution to this problem? Hope reply |
@brightchild @romanown @mderrick |
thank you. I deleted this line and it works for me. of course Your decision is more correct. |
Anyone else finding themselves here: since there PR was never merged a different workaround I found was to use the react-no-ssr package and wrap the Hope this helps someone. |
when I go to the page with the video from the main page of the site it works well. but when I go to the page with the video on a direct link then such an error.
ReferenceError: navigator is not defined
at /var/www/dfor.ru/node_modules/react-html5video/dist/index.js:2496:61
at Video.render (/var/www/dfor.ru/node_modules/react-html5video/dist/index.js:259:35)
The text was updated successfully, but these errors were encountered: