console.log(prisma)
freezes and does not return
#19648
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
tech/typescript
Issue for tech TypeScript.
topic: logging
topic: windows
Bug description
Set prisma in the root model. Subsequently, the prisma is received from the sole model and the user model is created through the proxy object. When you try to output an instance of the user model, the console recursively invokes an object and freezes the terminal. I'm very curious about the reason.
How to reproduce
$ npm init -y
$ npm install typescript ts-node prisma
...create prisma schema
...user create success
Problem code run
Expected behavior
I wanted to use it like the active record I use on Ruby on Rails. I thought I could create a user model object and then access user data through a proxy object. Wanted to avoid writing all the user properties to model objects.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: