itsmeI
Convex Community3mo ago
1 reply
itsme

Convex Auth Could not resolve "@convex-dev/auth/server"

I'm getting this error right after setting up convex auth with npx @convex-dev/auth (I meant to use bun but I think thats fine) when I bunx convex dev.

❯ bunx convex dev
⠸ Bundling component schemas and implementations...
✘ [ERROR] Could not resolve "@convex-dev/auth/server"

    convex/auth.ts:1:27:
      1 │ import { convexAuth } from "@convex-dev/auth/server";
        ╵                            ~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@convex-dev/auth/server" as external to exclude it from the bundle, which
  will remove this error and leave the unresolved path in the bundle.
Was this page helpful?