Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigInt breaks studio #802

Closed
roncohen opened this issue Nov 18, 2021 · 2 comments
Closed

BigInt breaks studio #802

roncohen opened this issue Nov 18, 2021 · 2 comments
Milestone

Comments

@roncohen
Copy link

  1. Prisma version (prisma -v or npx prisma -v):
    Studio version: Version 0.438.0 (0.438.0)

  2. Logs from Developer Tools Console or Command line, if any:

TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at new Tl (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/index.js:1:216912)
    at bs (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:50128)
    at Ha (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:67591)
    at bl (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:105796)
    at gu (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:97229)
    at hu (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:97154)
    at iu (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:94183)
    at file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:27:45779
    at e.unstable_runWithPriority (file:///Applications/Prisma%20Studio.app/Contents/Resources/app.asar/dist/renderer/assets/vendor.js:18:3854)
  1. Does the issue persist even after updating to the latest prisma alpha? (npm i -D @prisma/cli@dev)
    yes

  2. Prisma schema (if relevant):

model User {
  id        BigInt   @id @default(autoincrement()) @db.BigInt
}
@roncohen
Copy link
Author

Actually looks like a duplicate of #756.

@sdnts
Copy link
Contributor

sdnts commented Nov 19, 2021

@roncohen I think the person who originally opened that issue was on an old version of Prisma, but it looks like you're not. I will double-check to make sure this works

@sdnts sdnts added this to the 3.8.0 milestone Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants