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

[BuildError] There is no Next.js version so that Build linked-blog-starter-md. #4

Open
CodyMan0 opened this issue Apr 28, 2023 · 10 comments

Comments

@CodyMan0
Copy link

Hi ~
Thanks to you, I can now easily deploy my Obsidian notes (using Obisidian-git)to a web page. really appreciate it.

however, There is one issue whenever

스크린샷 2023-04-28 오후 6 43 21

Even though the changes are reflected on the website after deploying with link-blog-starter-md, there are cases where the build fails because Next.js is not installed in the directory.

I'm trying to fix it in publish.yml now, Do you know?

  • Brian
@Vetrov0x
Copy link

Vetrov0x commented May 6, 2023

Hi ~ Thanks to you, I can now easily deploy my Obsidian notes (using Obisidian-git)to a web page. really appreciate it.

however, There is one issue whenever

스크린샷 2023-04-28 오후 6 43 21

Even though the changes are reflected on the website after deploying with link-blog-starter-md, there are cases where the build fails because Next.js is not installed in the directory.

I'm trying to fix it in publish.yml now, Do you know?

  • Brian

Got the same issue, just deleted and tried to re-do all step by step and it worked 🤷‍♂️

@Vetrov0x
Copy link

Vetrov0x commented May 6, 2023

I have an other issue with "npm i" : there is no package.json in the directory

@matthewwong525
Copy link
Owner

Does this happen intermittently? I suspect maybe you forgot the framework preset in step 4:
image

@matthewwong525
Copy link
Owner

I have an other issue with "npm i" : there is no package.json in the directory

Where are you running npm i from? Also could you create another issue for this?

@CodyMan0
Copy link
Author

Thank you so much!

Can I send a pull request about graph view using D3,

@matthewwong525
Copy link
Owner

Thank you so much!

Can I send a pull request about graph view using D3,

Yes of course! Would be happy to review

@CodyMan0
Copy link
Author

I apologize for the inconvenience caused by the large size of the code in the pull request. Thank you for submitting the PR. I appreciate it!

@ChenHaoTech
Copy link

hi all, I know the reason, because there is no right writing here.
image

@vcavallo
Copy link

I'm having the same issue. This repo doesn't include a Next.js install, so the Vercel deploy fails as there are no relevant Next.js files getting pushed. I do have Next.js chosen as the framework in Vercel.
Is the Next.js build supposed to be handled by the workflow only, and the next.js source files are not intended to be included here? If so, perhaps some dependency in the workflow is missing or broken?

@vcavallo
Copy link

Disregard my previous comment.

I looked into the github workflow log and found:

...
Vercel CLI 34.3.0
Retrieving project…

Retrieving project…
Error: Project not found ({"VERCEL_PROJECT_ID":"***","VERCEL_ORG_ID":"***"})


Error: Project not found ({"VERCEL_PROJECT_ID":"***","VERCEL_ORG_ID":"***"})

Error: The process '/usr/local/bin/npx' failed with exit code 1

I am using a vercel team, and thus needed to use the proper team ID for the VERCEL_ORG_ID variable. Might be worth updating the docs to point this out ("user settings" is not necessarily the correct place to get the value, if you're using a team)

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

5 participants