Hey there folks! We are having issues with the bin...
# orm-help
t
Hey there folks! We are having issues with the binaryTargets variable in the client generator. After a version update, our team started to experience issues for which the only solution is to place the
binaryTarget = ["native"]
line to the
schema.prisma
file manually each time one of us generates the db. Are there any solutions to this that we might not be aware of? Thanks!
n
Hey Taha 👋 From which version did you start getting this error? What error do you get if you don’t add the binaryTarget attribute?
t
Hi Nurul! Unfortunately I can’t give you version numbers but we’re now on 3.11.1 and this version produces the issue I described above. If we don’t add the binaryTarget attribute we receive a message explicitly telling us to do that. Please see the screenshots below:
👍 1
We also saw this issue popping up a few months ago as well.
n
You are generating PrismaClient in MacOS, right?
t
in my case, yes. However other members of the team using Linux or pre-m1 macs are facing with this issue as well.
n
Let me check this with our team and see if it’s a known issue
t
Thank you, @Nurul!
👍 1
Hi @Nurul - any updates on this?
n
Hey Taha 👋 It seems that our team hasn’t encountered this issue before. Could you create a GitHub Issue here so that our engineering team could have a deeper look
t
Thank you, @Nurul - I will create the GitHub issue and will notify you once I do that.