Vercel failing to deploy

All of a sudden I started getting this error while deploying:

unhandledRejection [Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.] {
  [cause]: [Array]
}
 ELIFECYCLE  Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1

It deployed normally few hours ago and it’s still deploying normally locally, but started getting this issue on recent deploys.

Can you share the link of the project?

Yes, this is the project: https://vercel.com/memgraph/documentation

you can check two recent PRs that failed with the same error message.

Also started getting deploy failure today. Maybe related maybe not.

I submit, appears to work, then nothing pushes up and on refresh the counter says last deployed 2 hours ago (last success)

If you remove package-lock.json / pnpm-lock.yaml and regenerate and redeploy, does it help?

Please create a new topic, this seems unrelated to the original post.

Unfortunately it doesn’t help.

Do you have a minimal repository which we can look at ? How do I create a minimal reproducible example for Vercel Support?

I don’t have a minimal repository since this is a project specifically for documentation. Since this is related to the project using the Pro plan, I’ve opened a support ticket. Ticket/case number is #617225. Thanks!

Hey @matea16

Did you resolve the issue ? I have the same issue (documentation project using Nextra)

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