Running now dev
gives error 'not found: next'
#13598
Replies: 8 comments 4 replies
-
Can you please provide a repository to clone so I can reproduce the error? |
Beta Was this translation helpful? Give feedback.
-
Repo: https://github.com/pranjaljately/nextjs-blog-temp Thanks! |
Beta Was this translation helpful? Give feedback.
-
I should probably add that I have downloaded and installed the Vercel CLI but same issue when running |
Beta Was this translation helpful? Give feedback.
-
I could not reproduce the issue:
|
Beta Was this translation helpful? Give feedback.
-
Having the same problem here... Exact same commit that worked this morning on the MacBooks of our dev team, no longer works this evening. You guys really are living "the move fast and break things" motto... |
Beta Was this translation helpful? Give feedback.
-
We use a monorepo approach. Our approx vercel.json:
The root has it's own package.json:
Output from
All of a sudden vercel is now trying to run |
Beta Was this translation helpful? Give feedback.
-
@pranjaljately we managed to "fix" the issue. The problem, at least for us, was that the vercel CLI had decided to change the project type that can be found in "Project Settings" in the GUI to "Next.js". Changing it back to "Other" fixed the "error: not found: next" problem for us. We believe that the vercel CLI decided to change this because one person in the team has been exploring ditching vercel in favour of moving our api routes in to next.js so we can rely on |
Beta Was this translation helpful? Give feedback.
-
Although @dan-turner's method works, it feels more like a workaround than a fix. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Created a nextjs-blog as per the docs. Can download the code from here
I am trying to run
now dev
and keep getting the following error: not found: nextOS: Windows 10
Now CLI version: 19.0.1
List of project dependencies:
Beta Was this translation helpful? Give feedback.
All reactions