No Next.js version detected

hi @swarnava ,
i’m facing the same issue with @simonknittel but i passed issue detecting packageManager,
i got an issue after that step,
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.

here are all my setup, can u help take a look at these?
i added ENABLE_EXPERIMENTAL_COREPACK

here is my current structure folder

aurora
  /backend
  /client
  -- /apps
  -- -- /web  (actual NextJS application here 🎯🚀)
  -- -- -- package.json
  -- -- -- app
  -- -- -- -- layout.tsx
  -- -- -- -- page.tsx
  -- -- -- -- link-preview-form.tsx
  -- -- -- -- link-preview.tsx
  -- packages
  -- -- /ui
  -- -- -- src
  -- -- -- -- form.tsx
  -- -- -- index.ts
  -- -- -- package.json
  -- -- -- tsup.config.ts
  -- pnpm-workspace.yaml
  -- package.json (already set packageManager: pnpm@10.4.1) ✅

i set ROOT DIRECTORY is client/

BUILD COMMAND is cd ../.. && turbo run build

here are outputs in Build Logs


It looks like you have already set client/apps/web and also running cd ../.. in build command which is causing the issue: Login – Vercel

1 Like

thanks @swarnava

my mistake, i have a package-lock.json lagecy at /apps/web so it’s conflicted with pnpm-lock.yaml at root.

i removed and the issue is solved.

2 Likes

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