swessel
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
I'm using a monorepo without nextjs
my setup:
"typescript": "^5.1.6"
"mysql2": "^3.6.0",
"drizzle-orm": "^0.28.2",
"zod": "^3.21.4"
and tried with node 18 and 20
I did not open a github issue yet, as I was come across this thread here via google
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
Thanks, this worked for me too.
Yes, it's not ideal, but it is a workaround for now. But now I'm able to build again at all. I think it will be fixed in one of the next releases.
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
In addition to you'r mentioned issue, I also get:
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
👍 Ohhh, thank's! Yes, that fixed the issue.
17 replies
DTDrizzle Team
•Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
have similar issues.
Also, some strange issues relating to zod happen.
For example a schema like
z.object({ key: z.string() })
becomes a type of { key?: string}
- the object keys become optional in type definitions.17 replies