Hello, we are new to vercel and are currently migrating all of our projects to it. We already have a few projects running on it, but there is one which gives us trouble.
It's a nodejs API and it runs fine on local, but when we deploy it to vercel we get this error:
Cannot find module '/ui/package.json'
Require stack:
- /var/task/node_modules/@bull-board/api/dist/src/index.js
- /var/task/app.js
- /var/task/server.js
- /opt/rust/nodejs.js
Did you forget to add it to "dependencies" in package.json?
For some reason it doesn't install this module, I tried to remove the node_modules folder and reinstall and it works locally.
I tested doing vercel build on the repo and in the output I can see that it doesn't install the dependency, even though it is in the package.json:

I tried to force the installation with a postinstall in the scripts in the package.json file, but it didn't work either.
![]()
This is my vercel.json file:

Does someone know how to fix this ?
