OOP In App router
Unanswered
British Shorthair posted this in #help-forum
British ShorthairOP
For my setup I have created a class: ChatSDK. The class has a supabase instance, which is intilaized using the server. Then I have created server actions that invoke function related to the ChatSDK class.
When I invoke the server action inside a client component everything works. But when I do this in a server component I receive the following error:
Does anyone know why this is happening?
When I invoke the server action inside a client component everything works. But when I do this in a server component I receive the following error:
Error: Invariant: cookies() expects to have requestAsyncStorage, none availableDoes anyone know why this is happening?