Next.js deployment failure with "No Next.js version detected" error

Problem

I am getting an error during deployment on Vercel. My project uses Next.js and TypeScript. While importing the project, I chose Next.js as the framework.

Error:

No Next.js version detected. Make sure your package.json has “next” in either “dependencies” or “devDependencies”. Also check your Root Directory setting matches the directory of your package.json file.

What I’ve Tried

  1. Uninstalling node_modules and deleting package.json
  2. Reinstalling all dependencies

My project is basically a job search website.

It sounds like there is no Next.js version in your package.json file.

Can you check for this?

"next": "15.0.2"

How did you do this? :slight_smile: