NextJS “Error: Invariant failed” with no error message during build
I’m trying to build a NextJS app locally. The app builds successfully on Vercel but does not build locally. I’ve tried to replicate the same conditions as on Vercel (e.g. make the same env vars available), but somehow can’t get the app to build.