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
9 Replies
It is exported, maybe need to update your
convex dependency?I am using the latest version
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
It’s exported here, maybe an IDE or typescript issue? https://github.com/get-convex/convex-js/blob/568d932c476ebcf31c69a4cd8fa9312629b0fa0b/src/server/index.ts#L56
How to resolve it?
damn also got this problem
npm / pnpm / bun?
pnpm
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.