Issue while trying to deploy a newer version of a website

Hi

I go an issue trying to deploy a newer version of an App, any suggestion as to what the issue could be?

Running build in Washington, D.C., USA (East) – iad1
08:57:17.587Build machine configuration: 2 cores, 8 GB
08:57:17.603Cloning github.com/adminsnackboxx/Personal (Branch: main, Commit: d2a77f7)
08:57:18.339Cloning completed: 736.000ms
08:57:19.434Skipping build cache since Package Manager changed from “pnpm” to “npm”
08:57:19.617Running “vercel build”
08:57:20.089Vercel CLI 42.1.1
08:57:20.344Your application is being built using next build. If you need to define a different build step, please create a vercel-build script in your package.json (e.g. { "scripts": { "vercel-build": "npm run prepare && next build" } }).
08:57:20.346Installing dependencies…
08:57:21.103
08:57:21.104up to date in 533ms
08:57:21.132Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
08:57:21.138Error: 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.
08:57:21.469
08:57:24.205Exiting build container

Only seeing one error
[08:57:17.587] Running build in Washington, D.C., USA (East) – iad1
[08:57:17.587] Build machine configuration: 2 cores, 8 GB
[08:57:17.603] Cloning github.com/adminsnackboxx/Personal (Branch: main, Commit: d2a77f7)
[08:57:18.339] Cloning completed: 736.000ms
[08:57:19.434] Skipping build cache since Package Manager changed from “pnpm” to “npm”
[08:57:19.617] Running “vercel build”
[08:57:20.089] Vercel CLI 42.1.1
[08:57:20.344] Your application is being built using next build. If you need to define a different build step, please create a vercel-build script in your package.json (e.g. { "scripts": { "vercel-build": "npm run prepare && next build" } }).
[08:57:20.346] Installing dependencies…
[08:57:21.103]
[08:57:21.104] up to date in 533ms
[08:57:21.132] Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
[08:57:21.138] 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.
[08:57:21.469]
[08:57:24.205] Exiting build container

Did you know there’s another category dedicated to v0 topics? A human should be here soon to help, but the answer may already be available even faster in one of these other posts.

Our docs are a great place to start.

We also have a walkthrough to help guide your workflow.

And these recordings can give you a look at v0 features and strategies in action shown by our Community:

https://community.vercel.com/tags/c/events/42/v0

Hi @sikhithar-gmailcom, welcome to the Vercel Community!

I think asking v0 to generate a package.json file for your project should fix this issue. You can also ask it to explicitly mention the Next.js version the app is using in the package.json.

Let me know if this solves your issue.