Next.js Discord

Discord Forum

Cryptic errors in canary prod build

Unanswered
Chow Chow posted this in #help-forum
Open in Discord
Chow ChowOP
I'm trying to do a prod build after recent refactor to use cache and I'm getting these cryptic errors with useless stack traces all over the place. First it was from all api route handlers, after I commented those out it's suddenly from /. Any ideas on how to trace where it can be coming from?

2 Replies

Chow ChowOP
what now? 😄
Chow ChowOP
ok I figured it out, it was a really obtuse circular reference where my auth/input validation helper was using async method that was using the helper itself almost 6 levels deep