Clerk convex logic throws an error every first-time I save while running dev server
I consistently see the function provided on the Clerk+Convex documentation throw on first save, when any convex files have been modified. If I CMD+S again (without file changes) I see the happy message. Odd - I'm just now noticing any time there's an error, the time on save is significantly higher:
21:52:06 Convex functions ready! (991.28ms)
6/3/2025, 9:52:06 PM [CONVEX Q(projects:fetchProjects)] Uncaught Error: Can't get current user
at getCurrentUserOrThrow (../../convex/users.ts:57:9)
at async handler (../convex/projects.ts:10:15)21:52:26 Convex functions ready! (394.91ms)
21:52:32 Convex functions ready! (379.47ms)
21:52:40 Convex functions ready! (947.86ms)
6/3/2025, 9:52:40 PM [CONVEX Q(projects:fetchProjects)] Uncaught Error: Can't get current user
at getCurrentUserOrThrow (../../convex/users.ts:57:9)
at async handler (../convex/projects.ts:10:15)
Any thoughts why? The functionality of the Clerk webhook + seeding the DB works great, annoying to see these errors on the console though
Below is the code from the docs that's throwing.
