Docs: Upgrade Nextjs with --api Usage #77393
Unanswered
prashantchothani
asked this question in
Help
Replies: 1 comment 2 replies
-
@leerob any possibilities to do this ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the documentation issue?
With 15.2.2, Nextjs can be used as a backend with --api option while installing. Like us, many were using Nextjs as a backend API and that is why I was chasing on having this option. Finally it is there. When i tried to upgrade the current project by removing React and React DOM in package.json making it exactly same as the fresh project, the build is not happening. The error I am getting is : Error: Cannot find module 'react'. How do we change our current project which does not have any front end component to --api project ? This needs to be documented please.
Is there any context that might help us understand?
Upgrading Nextjs backend project to --api
Does the docs page already exist? Please link to it.
No response
Beta Was this translation helpful? Give feedback.
All reactions