Yves G
CCConvex Community
•Created by Yves G on 5/14/2025 in #support-community
vercel deployment issue: The Edge Function "middleware" is referencing unsupported modules
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 🙂
2 replies
CCConvex Community
•Created by Yves G on 5/13/2025 in #support-community
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 🙂
2 replies