prisma / studio

🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
https://www.prisma.io/studio
1.81k stars 45 forks source link

Error when change prop in table (in prisma studio) #1241

Open gnvcor opened 2 months ago

gnvcor commented 2 months ago

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

Prisma logs

No response

janpio commented 3 weeks ago

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

gnvcor commented 2 weeks ago

Now, i used prisma@5.15.0 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?