Skip to content
Back

SOLVED: Error Appwrite setEndpoint

  • 2
  • Web
Hexi
30 Sep, 2023, 10:58

Hello I've gotten a issue with sveltekit when I initiate the client I get a error: TypeError: Cannot read properties of undefined (reading 'replace') at Client.setEndpoint. This only happens at build/start and not in dev mode I've seen someone else with the same issue but he is using NextJS but the exact same error he gets aswell only problem is that its closed and there are not fixes: https://github.com/appwrite/appwrite/issues/5328

TL;DR
I am experiencing an error with Appwrite's setEndpoint function in Sveltekit. The error message states "TypeError: Cannot read properties of undefined (reading 'replace') at Client.setEndpoint." This error only occurs during build/start and not in development mode. I found a GitHub thread discussing the same issue, but unfortunately, it is closed with no fixes mentioned.
Hexi
30 Sep, 2023, 10:59

Error Appwrite setEndpoint

Hexi
30 Sep, 2023, 11:36

Fixed: Dynamic ENV was empty for some reason at build. Use Static ENV

Hexi
30 Sep, 2023, 11:36

SOLVED: Error Appwrite setEndpoint

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