not found error from following the vercel nextjs dashboard app tutorial
Unanswered
Kenspectacle posted this in #help-forum
Hi guys, I was following the tutorial for the nextjs dashboard-app. I am at the 6th chapter of the tutorial series and I encountered this error attached
what should I do in this case? im a beginner in NextJS :)
what should I do in this case? im a beginner in NextJS :)
23 Replies
can it be possible because the github repo is private?
@alfonsüs ardani send build log?
how do I get it?
nvm
Find in logs
CtrlF
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Cloning github.com/Kenspectacle/NextJS-Tutorial (Branch: main, Commit: 6589d5d)
Previous build caches not available
Cloning completed: 998.000ms
Running "vercel build"
Vercel CLI 48.2.9
Build Completed in /vercel/output [49ms]
Deploying outputs...
Deployment completed
Creating build cache...
Skipping cache upload because no files were prepared@Kenspectacle can it be possible because the github repo is private?
have you changed the framework option by any chance while deploying
@Anay-208 have you changed the framework option by any chance while deploying
umm not yet, not sure how to do that, I'll look it up now
I tried clicking around and couldn't find it
so I managed to find it and changed the setting
but for some reason it says that no nextjs was found in dependency/devDependency
but i see this in my package.json
"node_modules/@next/env": {
"version": "15.5.4",
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.4.tgz",
"integrity": "sha512-27SQhYp5QryzIT5uO8hq99C69eLQ7qkzkDPsk3N+GuS2XgOgoYEeOav7Pf8Tn4drECOVDsDg8oj+/DVy8qQL2A==",
"license": "MIT"
},am I doing something wrong? I have no idea what the line above does
this is the error log
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" } }`).
Installing dependencies...
up to date in 565ms
Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
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.I think I have found the problem, that my project is embedded within a folder within the root folder of the repo
I guess the best way to do it is to unpack the folder somehow, I'll try doing it
okay that solved the problem, thanks guys!
@Anay-208 yes by adding a monorepo
what do you mean exactly by adding a monorepo? sorry late answer
I mean since its a monorepo, you can add path for the project dir in vercel