Next.js Discord

Discord Forum

Unexpected Build Error — Need Help

Unanswered
thehardik posted this in #help-forum
Open in Discord
I'm suddenly getting a Next.js build error that wasn't present in the previous build (which is already deployed and running fine). Nothing major changed, but now the build fails with:

Error: input is invalid type
at C.update (.next/server/chunks/7307.js:3:303153)
at <unknown> (.next/server/chunks/7307.js:3:300973)
at M (.next/server/chunks/7307.js:3:30689)
at Object.K [as create] (.next/server/chunks/7307.js:3:33362)
at <unknown> (.next/server/chunks/7307.js:3:222381)
at new S (.next/server/chunks/7307.js:3:222497)
at t.PL (.next/server/chunks/7307.js:6:53880)
at 72264 (.next/server/chunks/3549.js:1:21005)
at t (.next/server/webpack-runtime.js:1:143)
at 90899 (.next/server/chunks/3549.js:1:37738)


Error message: input is invalid type

This wasn’t happening before, and the deployed version still builds and runs correctly.
If anyone has ideas on what could trigger this suddenly in a Next.js + Turborepo setup, please let me know 🙏

2 Replies

Pacific sand lance
investigate issue / backtrack based on stack trace
I had investigated issue still not able to found root cause of this