-
Notifications
You must be signed in to change notification settings - Fork 64
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
React Remix Project Vimeo Error: Sorry, the Vimeo Player API is not available in this browser. #229
Comments
this component doesn't support server-side rendering currently. |
Thanks @goto-bus-stop could you suggest an alternative method for rending the Vimeo videos? |
if remix has some way to detect if you're in a server-side context, you can use that to conditionally render the component. i'm not familiar with remix at all so i don't think i can offer anything more :' |
@cgatherer What did you do about this? I'm still learning Server-side rendering so I don't know how to respond to @goto-bus-stop 's suggestion to conditionally render the component. The docs here: https://remix.run/docs/en/v1/guides/constraints Say "Remix renders on the server so your modules can't have module side effects or first-rendering logic that call browser-only APIs" So... does that mean I just can't use this package? |
Take a look into the ClientOnly component in remix-utils. This should solve it |
I'm currently working on a react front end using remix and wp-graphql. I'm creating a video banner using react-vimeo, and I'm receiving the error below. Also I've provided Hero Component, am I miss a dependency or did I code something in error? Thanks in advance.
The text was updated successfully, but these errors were encountered: