Yves G
Yves G•3w ago

Trying to deploy a nextjs + convex auth app to vercel, middleware edge issue

Hi there, was hoping to use convex for data/auth for a small project but i keep getting this error : Error: The Edge Function "middleware" is referencing unsupported modules: - vcns__/0/middleware.js: @convex-dev/auth/nextjs/server package.json: "version": "0.1.0", "private": true, "scripts": { "dev": "npm-run-all --parallel dev:frontend dev:backend", "dev:frontend": "next dev", "dev:backend": "convex dev", "predev": "convex dev --until-success && convex dev --once --run-sh 'node setup.mjs --once' && convex dashboard", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@auth/core": "0.37.0", "@convex-dev/auth": "^0.0.81", "convex": "^1.24.1", just using default middleware.ts from docs as well! Has anyone else had this issue? Reread the docs a few times but dont see the cause of the issue! cheers 🙂
1 Reply
Convex Bot
Convex Bot•3w 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?