studio icon indicating copy to clipboard operation
studio copied to clipboard

Error when change prop in table (in prisma studio)

Open gnvcor opened this issue 9 months ago • 2 comments

Bug description

TypeError: Do not know how to serialize a BigInt at JSON.stringify () at St.serialize (http://localhost:5555/assets/index.js:1:50152) at St.update (http://localhost:5555/assets/index.js:1:11860) at Cc (http://localhost:5555/assets/vendor.js:50:6994) at St.n (http://localhost:5555/assets/vendor.js:50:6688) at St.update (http://localhost:5555/assets/index.js:1:50009) at Cc (http://localhost:5555/assets/vendor.js:50:6994) at St.n (http://localhost:5555/assets/vendor.js:50:6688) at Yr.handleCellValueChanged (http://localhost:5555/assets/index.js:1:212591) at valueSetter (http://localhost:5555/assets/index.js:1:208303)

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

  • OS:
  • Browser:
  • Database:

Prisma logs

No response

gnvcor avatar May 01 '24 17:05 gnvcor

What version of Prisma are you using? Do you have a BigInt field in your Prisma Schema?

janpio avatar Jun 07 '24 14:06 janpio

Now, i used [email protected] and i catch error Message: Do not know how to serialize a BigInt

Yep, i have BigInt in my Prisma Schema. But, early, my schema don't have type BigInt, i used simple Int type.

May be i have problem, because part data in my table have type Int and rest data have type BigInt?

gnvcor avatar Jun 13 '24 04:06 gnvcor