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
7 Replies
What version of TypeScript is in your package.json? What version of node is on the container?
typescript ^4.5.4
and the container is using the node:18.12.1-alpine image
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)
forgot to mention it but i did upgrade prisma to the latest version locally already that didn't fix it
Solution
Latest version of Prisma requires TS 4.7+
ah well that explains then probably lemme go try
that fixed btw that was stupid :FACEPALM:
no problem at all! Glad it's fixed