Prisma client run ok when I use `ts-node` but whe...
# prisma-client
ö
Prisma client run ok when I use
ts-node
but when I try to compile it with
tsc
I get this error
d
what version of typescript and prisma?
ö
Here are the all package versions
j
Seems like someone had this too but it resolved itself https://github.com/prisma/prisma/issues/5142
At this point maybe delete node_modules to do a fresh install?
ö
Yup, I already saw this one. It's more scary when it resolves itself haha.
plus one +1 1
tried that and still same
🤔 1
lemme try again
j
try
npx prisma -v
to double check the versions installed
ö
Copy code
@prisma/cli          : 2.15.0
@prisma/client       : 2.15.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine e51dc3b5a9ee790a07104bec1c9477d51740fe54 (at ../node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine     : migration-engine-cli e51dc3b5a9ee790a07104bec1c9477d51740fe54 (at ../node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core e51dc3b5a9ee790a07104bec1c9477d51740fe54 (at ../node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary        : prisma-fmt e51dc3b5a9ee790a07104bec1c9477d51740fe54 (at ../node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Studio               : 0.340.0
I deleted everything and build it from scratch, same thing
Should I try to reset database?
j
No
Would be interesting to get the tsc version with
tsc -v
maybe you have a global one and local one that are different
ö
3.8.3
j
That’s it
If you want to use the local tsc in your project you can do
npx tsc
for example
ö
Oh it worked, thanks really
idk why but typescript got stuck on that version
j
You’re welcome, also posted on that GH issue in case someone else gets this too https://github.com/prisma/prisma/issues/5142#issuecomment-765412043
ö
I was going to do that but thanks for it too
💯 1
one more step on the way to be a prisma fanboy
prisma rainbow 1
🦜 1
j
Did you get the stickers yet? 🤓
ö
Nope I haven't, lemme fill the form
prisma cool 1