I built a site for a customer using Netlify, Next.Js, and Sanity.IO and it’s been working fine to date, then today 4 deployments in a row in a nearly 3-hour window all failed with:
8:46:57 PM: Error message
8:46:57 PM: A Netlify Function failed to require one of its dependencies.
8:46:57 PM: Please make sure it is present in the site’s top-level “package.json”.
8:46:57 PM: In file “/opt/build/repo/.netlify/functions-internal/next_coach/next_coach.js”
8:46:57 PM: Cannot find module ‘webpack’
8:46:57 PM: Require stack:
8:46:57 PM: - /opt/buildhome/node-deps/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/zisi/resolve.js
2 builds since have both worked, but it’s dented the customer’s impression of the stack.
The site name is dev-web-actioncoach-corporatefirms
Many thanks in advance