Cannot read properties of undefined (reading 'bind')
I am trying to update a project I haven't worked on in months. Went to update the prisma dependencies but when running the code, it is showing these errors. The version I updated it to is 6.2.1 which is the latest and am using mongodb. Tried to debug it but not sure what is causing it.
5 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.Hi @Tarna
Did you update both the
@prisma/client
and prisma
packages to the same version? You can also delete node_module folder and reinstalling dependencies. Also, what version are you updating from? Knowing this can help identify if there are any breaking changes between versions that may be affecting your project.sorry for the delay. I was able to fix it shortly after by updating some other dependencies and then reinstalling all depdencies as well
Hey @Tarna, I have the same problem, what did u do exactly? 😄
Idk what exactly I did that fixed it. But all I did was update some other dependencies. Deleted node modules. Reran prisma generate. And then it started working. When I get back home, I can check my commit to see what other things I may have changed.
yeah it was just me updating the libraries. my typescript version was also outdated that I had to update