Temporary Cannot find module 'webpack' with zip-it-and-ship-it

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

Hi @GoCommerce,

The last failed build was on October 30 and the successful builds have been on November 9. I believe something might have changed during this time that could have fixed your problem. Could you confirm if you’re facing this problem again?