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* ???*1*["cwd"]
⚠️ unknown object
- *1* arguments[0]
⚠️ function calls are not analysed yet
- *2* {"cwd": ???*3*, "path": process.env*5*[???*6*()], "execPath": ???*7*, ...???*9*}["cwd"]
⚠️ spread object
⚠️ This value might have side effects
- *3* process.cwd*4*()
⚠️ process.cwd is not specified in the environment
⚠️ This value might have side effects
- *4* process.cwd: The Node.js process.cwd method: https://nodejs.org/api/process.html#processcwd
- *5* process.env: The Node.js process.env property: https://nodejs.org/api/process.html#processenv
- *6* A["exports"]
⚠️ sequence with side effects
⚠️ This value might have side effects
- *7* process*8*["execPath"]
⚠️ unsupported property on Node.js process object
⚠️ This value might have side effects
- *8* process: The Node.js process module: https://nodejs.org/api/process.html
- *9* e
⚠️ circular variable reference
- *0* ???*1*["cwd"]
⚠️ unknown object
- *1* arguments[0]
⚠️ function calls are not analysed yet
- *2* {"cwd": ???*3*, "path": process.env*5*[???*6*()], "execPath": ???*7*, ...???*9*}["cwd"]
⚠️ spread object
⚠️ This value might have side effects
- *3* process.cwd*4*()
⚠️ process.cwd is not specified in the environment
⚠️ This value might have side effects
- *4* process.cwd: The Node.js process.cwd method: https://nodejs.org/api/process.html#processcwd
- *5* process.env: The Node.js process.env property: https://nodejs.org/api/process.html#processenv
- *6* A["exports"]
⚠️ sequence with side effects
⚠️ This value might have side effects
- *7* process*8*["execPath"]
⚠️ unsupported property on Node.js process object
⚠️ This value might have side effects
- *8* process: The Node.js process module: https://nodejs.org/api/process.html
- *9* e
⚠️ circular variable reference
No description
0 Replies
No replies yetBe the first to reply to this messageJoin