P
Prisma•2w ago
Tarna

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.
TypeError: Cannot read properties of undefined (reading 'bind')
at _r.wrapEngine (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:111:11274)
at _r.loadEngine (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:112:657)
at async _r.instantiateLibrary (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:111:12367)
TypeError: Cannot read properties of undefined (reading 'bind')
at _r.wrapEngine (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:111:11274)
at _r.loadEngine (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:112:657)
at async _r.instantiateLibrary (/Users/Desktop/projects/playercount/node_modules/@prisma/client/runtime/library.js:111:12367)
5 Replies
Prisma AI Help
Prisma AI Help•2w ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
RaphaelEtim
RaphaelEtim•2w ago
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.
Tarna
TarnaOP•2w ago
sorry for the delay. I was able to fix it shortly after by updating some other dependencies and then reinstalling all depdencies as well
IceCrew
IceCrew•2w ago
Hey @Tarna, I have the same problem, what did u do exactly? 😄
Tarna
TarnaOP•2w ago
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

Did you find this page helpful?