Back

Sveltekit Realtime

  • 0
  • Realtime
marco78
19 Jun, 2024, 19:58

HI, I was trying to use Realtime update, but I get an error "ReferenceError: window is not defined", what is the correct way to implement this in a Sveltekit app?

TL;DR
Developers are encountering a "ReferenceError: window is not defined" error when attempting to implement Realtime updates in a Sveltekit app. To resolve this issue, the developers should ensure that their code is wrapped in a check for the window object before accessing it. This can prevent the error from occurring.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more