Vercel: no package.json found in monorepo
The implementation of monorepo does not see package.json or starts building the wrong application. Root Directory of the project can indicate a repository directory instead of a specific application folder.
How to determine the source of the error
Check the app/ structure, packages/ and the actual package.json location for the application.
Compare Root Directory and install/build commands with the directory from which they are made in Vercel.
What to do step by step
1. Set Root Directory to the actual application or configure monorepo according to the workspace manager used.
2 . Make sure that the shared packages dependencies are available at build and that configuration does not cut off the needed files.
How to check the score
PR preview and production build the same application, and the resulting address shows correct components.
What to do
Do not move package.json to the root directory blindly if repo supports several applications.