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
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
