My project has been working the past year and never had any issues. I updated the node version and now my project won’t build. I am getting the 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 have my root directory configured. I tried modifying the install script to ls and cat the package json to make sure I can see the next. It is in the right directory and next exists. I also tried using npx create-next-app@latest, saved it in a sub, and tried building without any changes and I get the same error. If I leave the root directory blank, it fails instantly. But if I set it to the proper dir, it hangs for a minute on install. What is the problem?
Hey @stevenbrown , looks like a break after version bump; also looks like it is installed but the build environment never successfully installed Next.js. Maybe check node compatibility once? App Router: Getting Started | Next.js
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.