saasykits / next-lucia-auth

This is a Next.js T3 project with authentication implemented using Lucia.
https://next-lucia.vercel.app
MIT License
350 stars 36 forks source link

TRPC Subcsriptions and Socket Server #66

Open vigneshprasad opened 1 month ago

vigneshprasad commented 1 month ago

This has been far and away the best template I've used in a long time and I've thoroughly enjoyed how easy it has been to use. I'm currently trying to implement TRPC subscriptions and a socket server and for some reason can't seem to run a socket server. I keep running into this issue

SyntaxError: The requested module 'react' does not provide an export named 'cache'

It seems to be triggering from the validate request in the lib auth directory. I've even tried passing session and user objects as null and creating a new context all together but can't seem to get past this error. Would be really helpful if someone can guide me on implementing web sockets correctly.

I understand this is not in the scope of this repository exactly and might not be something a lot of people want but would be super helpful if anyone has any pointers.