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.
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!