Error: Cannot find module Netlify functions using Nextjs

Same here!

This error just happens in the Netlify build.

In machine (develop mode/localhost) and in other alternatives to online deploy like Vercel it doesn’t happen.

I’m trying some resolutions and will share that here.

Thank you!

edit: it looks to be an issue of incompatibility of next 11.0.0 (or older) with new versions of netlify plugins.
you can read more in this github issue: [Bug]: Updating plugin to v4 causes 502 error on some routes · Issue #1103 · netlify/next-runtime · GitHub

And this is another discussion of an error like yours here: