Yves GY
Convex Communityโ€ข9mo agoโ€ข
4 replies
Yves G

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 ๐Ÿ™‚
Was this page helpful?