Hi, i get this warning on a regular base: ``` ▲ [...
# orm-help
s
Hi, i get this warning on a regular base:
Copy code
▲ [WARNING] Comparison with -0 using the "===" operator will also match 0 [equals-negative-zero]
 
     prisma/dist/runtime/index.js:17308:29:
       17308 │             } else if (x === -0) {
             ╵                              ~~
 
   Floating-point equality is defined such that 0 and -0 are equal, so "x === -0" returns true for both 0 and -0. You need to use "<http://Object.is|Object.is>(x, -0)" instead to test for -0.
I dont know how to get rid of it,any suggestions? Thank you
1
a
disable your linter for the
prisma/dist
folder
s
Didnt help: I get the message when developing/watching the project
a
Hey 👋🏾 I’ve forwarded your question to our engineering and will get back to you. Could you provide a snippet of your Prisma schema and query that yields the error?
s
Hi, i produced a minimal schema file, i hope this can help you. Thanks in advance!
Copy code
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "darwin", "debian-openssl-1.1.x", "linux-musl", "windows"]
  output        = "./dist"
}

datasource db {
  provider = "mysql"
  url      = env("APP_MAIN_DATABASE_URL")
}

model customerPictures {
  id                    BigInt    @id @default(autoincrement()) @map("bilder_id")

  // Meta
  @@map("karena_kunden_bilder")
}
a
Could you share the query that leads to the error?
s
It not a query it pops up during build
a
Ah, sorry for the confusion, In that case, could you create a GitHub issue with your current setup to help our engineering team look into it?
s
Sure will do
I hope i didint miss any information
a
Thanks for creating the issue, could you add details such as the build setup since this is an error that occurs at build time,
s
What exactly do you mean? There is not so much special in there.
a
Since this error occurs at build time, your setup using Vite/ webpack would help us reproduce the error and resolve it/ suggest a workaround or fix.
s
Ok i added it as a comment