Issues withs Nextjs and Appwrite Client.subscribe() method using appwrite-sdk
- 0
- Self Hosted
- Web
- Realtime

I'm attempting to setup a realtime chat component in my nextjs app, but I'm getting module not found errors when using the .subscribe() function on the client-side of the application. I'm getting the following error from node:
⨯ ./node_modules/node-appwrite/lib/inputFile.js:2:0
Module not found: Can't resolve 'fs'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/node-appwrite/index.js
./src/config/appwrite.ts
./src/pages/account/support-chat.tsx
When looking and documentation and tutorials, it looks like things are being done on the client-side so I'm not sure why I would be getting this error from the appwrite sdk. i'm using appwrite version 1.1.1 (planning an upgrade to 1.4 very soon) self-hosted
Recommended threads
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- Cannot create a user
Hi, I am using a lowcoder frontend and trying to create a user in Appwrite (python function). Unfortunately, all I got is an error: "Raw body: Error". It means...
- React native app login via Safari
Hi! I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari co...
