circular variable reference issues
I'm currently using Prisma with Next.js app router/API routes and Postgres to manage our backend. We've been running into some strange problems - every time we try to call an API route, we get a massive spam of code in the terminal followed by the following error:
What we've done to resolve:
- Looked over schema for circular references
- Migrated BE to entirely new next.js project
- Tried new schema
- Tried running extremely simple BE route that sends a POST request and updates DB
Perhaps this is an error with the way our backend is setup? We're quite stumped with this and haven't found anything via Googling, would appreciate some assistance here!
Happy to also share our schema as well!
Example output below:
0 Replies