X Æ A-Ⅻ
X Æ A-Ⅻ4w ago

Import error in auth.config.ts

In the docs for Nextjs, there is an import import { AuthConfig } from "convex/server" which is causing import error and I searched the docs to find a solution to fix this error, there are no resources I can refer to, please help Here is the doc link https://docs.convex.dev/auth/clerk#nextjs
No description
9 Replies
erquhart
erquhart4w ago
It is exported, maybe need to update your convex dependency?
X Æ A-Ⅻ
X Æ A-ⅫOP4w ago
I am using the latest version
AmanX
AmanX4w ago
hey right now i am also facing this import issue. i have integrated clerk with convex multiple times but that time the auth.config.ts file in docs was like this and faced no issue : CODE : export default { providers: [ { // Replace with your own Clerk Issuer URL from your "convex" JWT template // or with process.env.CLERK_JWT_ISSUER_DOMAIN // and configure CLERK_JWT_ISSUER_DOMAIN on the Convex Dashboard // See https://docs.convex.dev/auth/clerk#configuring-dev-and-prod-instances domain: process.env.CLERK_JWT_ISSUER_DOMAIN, applicationID: "convex", }, ] };
Convex & Clerk | Convex Developer Hub
Integrate Clerk authentication with Convex
X Æ A-Ⅻ
X Æ A-ⅫOP4w ago
How to resolve it?
Jesse
Jesse4w ago
damn also got this problem
erquhart
erquhart3w ago
npm / pnpm / bun?
X Æ A-Ⅻ
X Æ A-ⅫOP3w ago
pnpm
erquhart
erquhart3w ago
Not sure what gives - you can follow the import manually in your editor and see that the file exists I've also seen pnpm being really weird with dependencies and have taken to just uninstalling and reinstalling dependencies when I upgrade them.

Did you find this page helpful?