Error: Function Runtimes must have a valid version, for example `now-php@1.0.0`. nextjs15

versel.json


{
“version”: 2,
“runtime”: “nodejs16.x”
}

Hello,

I am not sure what you are trying to do. It appears that you are deploying Next.js application? By default, you don’t need a vercel.json to deploy Next.js app unless you need a custom config.

if i did not add vercel.json that.
error Error: Cross-reference between Middleware and Edge

Hi Vikash,

Have you tried our Next.js starter template? Next.js Starter Templates & Themes | Vercel – Vercel This should give you brief about deploying a fresh Next.js application

1 Like

Now I fixed that error .

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.