Hi guys, sorry to just barge in with a question li...
# prisma-client
s
Hi guys, sorry to just barge in with a question like that, but I’m having a strange issue using prisma2 and webpack. Once it’s compiled, at runtime, I get the following error:
Copy code
(...) /webpack:/libs/data/src/generated/client/index.js:21
const debug = debugLib('prisma-client')
              ^
TypeError: debugLib is not a function
The prisma dependencies I have installed in my package.json are:
Copy code
"@prisma/client": "2.16",
    "prisma": "^2.16.0",
and my schema.prisma generator config is:
Copy code
generator client {
  provider      = "prisma-client-js"
  output        = "./generated/client"
  previewFeatures = ["nativeTypes"]
  binaryTargets = ["native", "rhel-openssl-1.0.x"]
}
Please let me know if I should ask about this somewhere else. Thanks a lot
👀 1
j
Could you try doing
npx prisma -v
to check the versions?
s
thanks for having a look!
Copy code
remi$ npx prisma -v
Environment variables loaded from .env
prisma               : 2.16.0
@prisma/client       : 2.16.0
Current platform     : darwin
Query Engine         : query-engine 854c8ba7f0dce66f115af36af24e66989a8c02a1 (at node_modules/@prisma/engines/query-engine-darwin)
Migration Engine     : migration-engine-cli 854c8ba7f0dce66f115af36af24e66989a8c02a1 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core 854c8ba7f0dce66f115af36af24e66989a8c02a1 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary        : prisma-fmt 854c8ba7f0dce66f115af36af24e66989a8c02a1 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Studio               : 0.346.0
j
s
thanks I’ll give it a shot