error - ReferenceError: EventTarget is not defined
install using pnpm, then pnpm dev
env info
"@u-wave/react-vimeo": "^0.9.10",
"react": "18.2.0",
"react-dom": "18.2.0",
It looks like you're server-rendering. this component does not support that.
It looks like you're server-rendering. this component does not support that.
yes, but using yarn is ok, so I want to know why there is a problem with using pnpm
that's impossible to say without a full, runnable example of the problem :)
let me try
@goto-bus-stop 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
so really @u-wave/react-vimeo shouldn't be loaded at all on the server, as it includes @vimeo/player which is a client-side only library. This component can't do anything on the server and does not support server-side rendering.
If you are using next I guess you should only import it in client components, but I don't use next myself so I can't say more.
@Jairwin-L if you are using next (what looks like you do), you may try to dynamically import the component with { ssr: false}
@Jairwin-L did you able to make it work on node 14?
@Jairwin-L did you able to make it work on node 14?
sorry, I kind of forgot about it