itsme
itsme2w ago

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.
❯ 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.
1 Reply
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?