@convex-dev/convex-lucia-auth package fails on new deployment to vercel, with nextjs@14
I'm using the @convex-dev/convex-lucia-auth package for authentication flow management, all was working fine and good until yesterday when making an update totally unrelated to the package I get a build failed error from vercel (screenshot).
Normal
next build
command works fine and doesn't catch these errors but vercel run tsc
command on every deployment which catches these errors. please help urgently needed. I also did not update my convex package incase this issue is from a new build and I have tried upgrading and downgrading to the latest @convex-dev/convex-lucia-auth
package, still no luck
2 Replies
This error looks like it's an older version of
convex-lucia-auth
with a newer version of convex
. I know you've tried upgrading / downgrading, but could you npm ls
or otherwise print the versions in your vercel build command so we can double check the right versions are getting installed?Alright, just did this and found out I was hard coding convex-lucia-auth version to @0.0.4 so the updates where still fetching the old version, using bun pm. Thanks a lot
It all works now
Do I need to do anything different when reading and setting sessionId tho?
I get an error that sessionId is undefined from the
convex-lucia-auth
package, on closer inspection of the code its trying to return a sessionId
from useContext
Resolved