punn
punn2y ago

Clerk imports from docs not working

import { ClerkProvider } from "@clerk/clerk-clerk";
import { ConvexProviderWithClerk } from "convex/react-clerk";
import { ClerkProvider } from "@clerk/clerk-clerk";
import { ConvexProviderWithClerk } from "convex/react-clerk";
Throws errors for both. @clerk/clerk-react module not found and ConvexProviderWithClerk is not exported in convex/react-clerk. I'm using NextJS13
8 Replies
Michal Srb
Michal Srb2y ago
The first line should be import { ClerkProvider } from "@clerk/clerk-react"; (last part is react not clerk) Can you check you are on the latest version of convex ? (0.12.2) You can check your package.json for the version that's likely installed.
punn
punnOP2y ago
Yep I'm on 0.12.2 and I did use clerk-react for the first line
punn
punnOP2y ago
the error is just with this now:
No description
punn
punnOP2y ago
Hi any update for this @Michal Srb ? still having some trouble
Michal Srb
Michal Srb2y ago
The code looks good. Maybe another thing I’d try is restarting VS Code if it’s only a TypeScript error (typescript has been bad recently at picking up various changes). Does the code also throw an error in the browser?
punn
punnOP2y ago
Yep not working still
No description
Michal Srb
Michal Srb2y ago
What happens when you go to definition in VS Code of convex/react-clerk? I’m thinking of maybe some stale node_modules if you were upgrading from a past lower version.
punn
punnOP2y ago
tried workflow on a new laptop and it works likely stale node modules thanks for the help!

Did you find this page helpful?