Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Next.js version could be detected in your project. Make sure "next" is installed in "dependencies" or "devDependencies #193

Open
anton-karlovskiy opened this issue Aug 8, 2024 · 6 comments

Comments

@anton-karlovskiy
Copy link

anton-karlovskiy commented Aug 8, 2024

I connected the GitHub repo to Vercel (through the Vercel UI) according to https://scaffold-eth-2-docs.vercel.app/deploying/deploy-nextjs-app.
And pushed commits to a challenge branch: challenge-2-token-vendor.

I set up domains like this:
image

General settings:
image

Development fails like this:
No Next.js version could be detected in your project. Make sure "next" is installed in "dependencies" or "devDependencies
Capture

Could you please help me find out what I did wrong?
Thank you.

cc @rin-st @technophile-04 @MattPereira

@technophile-04
Copy link
Collaborator

I am not sure what went wrong, but ideally while connecting repo to vercel it should have auto detected the root dir as packages/nextjs

Screenshot 2024-08-09 at 4 43 09 PM

Nevertheless you could manually mention in "Root Directory" input with packages/nextjs(checkout out your second screen shot the General settings one)

@anton-karlovskiy
Copy link
Author

@technophile-04

I have already tried inputting packages/nextjs in "Root Directory" and it would not work.
If it should have auto-detected the root dir, I might have done something wrong.

Thank you for your comment.

@anton-karlovskiy
Copy link
Author

I am not sure what went wrong, but ideally while connecting repo to vercel it should have auto detected the root dir as packages/nextjs

Screenshot 2024-08-09 at 4 43 09 PM

Nevertheless you could manually mention in "Root Directory" input with packages/nextjs(checkout out your second screen shot the General settings one)

Vercel does not auto-detect the root dir. And even if I manually set it, build fails.
image

@anton-karlovskiy
Copy link
Author

I am not sure what went wrong, but ideally while connecting repo to vercel it should have auto detected the root dir as packages/nextjs

Screenshot 2024-08-09 at 4 43 09 PM

Nevertheless you could manually mention in "Root Directory" input with packages/nextjs(checkout out your second screen shot the General settings one)

This is the build result.
image

@anton-karlovskiy
Copy link
Author

I am not sure what went wrong, but ideally while connecting repo to vercel it should have auto detected the root dir as packages/nextjs

Screenshot 2024-08-09 at 4 43 09 PM

Nevertheless you could manually mention in "Root Directory" input with packages/nextjs(checkout out your second screen shot the General settings one)

Do I have to override these commands manually?
image

@technophile-04
Copy link
Collaborator

Hey @anton-karlovskiy, not sure what you are doing wrong. Can you make sure that your github repo default branch on contains code from challenge-2 and you are not deploying the main of challenge repo? Since main branch of challenges only have README.md init.

So make sure you have correct branch while deploying and it should auto-detect.

Screenshot 2024-09-05 at 12 44 37 PM

If the above doesn't help could you share the screenshot of what the "source" looks like for you deployment:

Screenshot 2024-09-05 at 12 41 35 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants