achrafash / next-zoom-starter

A starter nextjs app with Zoom integration
3 stars 3 forks source link

ReferenceError: window is not defined #1

Open arifath opened 1 year ago

arifath commented 1 year ago

when i try route /meeting it show error "window is not defined"

achrafash commented 1 year ago

Hey @arifath! thanks for your interest in this repo, I haven't touch it in a while… 😅

Looks like the problem could come from getMeetingUrl which calls getCurrentDomain which uses the window API.

I'm not sure why it raises an error as getMeetingUrl is only called in the onClick handler 🤷

The Zoom APIs and SDKs has changed a lot since then, so I'm not even sure it's worth fixing this issue anyway… Sorry

Lemme know if I can help you with anything else!