P
Prisma4mo ago
Jarco

ts error in library file

When running my project with prisma locally on my pc it works fine but as soon as i try to build my project in docker it fails due to errors with in the prisma type file aparently this is my schema.prisma file https://github.com/Jarco-dev/ferox-statistics/blob/master/prisma/schema.prisma https://i.jarco.dev/4Hw6iHXW.png
GitHub
ferox-statistics/prisma/schema.prisma at master · Jarco-dev/ferox-s...
The ferox statistics discord bot. Contribute to Jarco-dev/ferox-statistics development by creating an account on GitHub.
Jarco
!false is funny because it's true
Solution:
Latest version of Prisma requires TS 4.7+
Jump to solution
7 Replies
jonfanz
jonfanz4mo ago
What version of TypeScript is in your package.json? What version of node is on the container?
Jarco
Jarco4mo ago
typescript ^4.5.4 and the container is using the node:18.12.1-alpine image
jonfanz
jonfanz4mo ago
Ah, just checked your repo. Tbh, I’m not sure what version of TS and Node v3 of Prisma supports. Maybe try Node 16? (Assuming that you can’t upgrade Prisma ofc)
Jarco
Jarco4mo ago
forgot to mention it but i did upgrade prisma to the latest version locally already that didn't fix it
Solution
jonfanz
jonfanz4mo ago
Latest version of Prisma requires TS 4.7+
Jarco
Jarco4mo ago
ah well that explains then probably lemme go try that fixed btw that was stupid :FACEPALM:
jonfanz
jonfanz4mo ago
no problem at all! Glad it's fixed
Want results from more Discord servers?
Add your server