Vercel deploy --prebuilt always errors out unexpectedly

Hi everyone, I’ve been working on a simple proof of concept project for a while now and I wanted to deploy it on vercel. I’ve previously gotten the build output API to work and I think I understand the gist of it. That is why I’m particularly surprised this time, when I try deploying an already build nodejs project from a package in a monorepo. And it’s telling me that a dependency which is used in another package cannot be found.

Here’s the current error I’m getting:

Meanwhile the dependency in question isn’t even in the package.json of the backend package.json

Steps to reproduce:
Just run
pnpm run deploy
in the backend folder

Here’s the link to the project:

The --prebuilt option should only be used when deploying from local build. Meaning you would need to run vercel build first.

Please try vercel deploy without any additional options and let me know if that works for you. You may also want to try vercel build to check for build errors.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.