Closed TamirCode closed 1 year ago
tried updating dependencies as well
"dependencies": {
"@prisma/client": "^4.8.0",
"@trpc/server": "^10.29.1",
"@types/cors": "^2.8.13",
"cors": "^2.8.5",
"express": "^4.18.2",
"zod": "^3.21.1",
"zod-prisma-types": "^2.7.1"
},
"devDependencies": {
"@types/express": "^4.17.17",
"@types/node": "^20.3.0",
"nodemon": "^2.0.20",
"prisma": "^4.8.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
please try updating prisma
, @prisma/client
to the latest version (4.15
) and zod-prisma-types
to 2.7.4
and see if the error still occures
please try updating
prisma
,@prisma/client
to the latest version (4.15
) andzod-prisma-types
to2.7.4
and see if the error still occures
this has resolved the original issue. The typescript errors are still there , even if I remove Comments table from the schema (which has a self reference foreign key so I thought it might be causing problems) But that will be separate issue and it doesn't bother me right now maybe in the future when i deploy or something it will be problematic idk. thanks!
yea i cant start the server cuz of the typescript errors, they come with delay haha i thought i was clear. I'll open new issue for that
when starting the server I have this error
There are also typescript errors in the generated file:![image](https://github.com/chrishoermann/zod-prisma-types/assets/66864667/3525ed44-9966-441e-b548-dcba80dbc765)
environment:
vscode 1.79.0 windows 10 node latest stable version v18.16.0 npm version 9.7.1 standard nodejs express typescript server, not using NextJS
tsconfig.json
package.json
schema.prisma
in my index.ts, im importing
UserCreateInputSchema
and it auto imports succesfully. index.tsthings I've tried:
useMultipleFiles = true
in generator