Ransom
Ransom
DTDrizzle Team
Created by Ransom on 8/11/2023 in #help
Type error: Type parameter has a circular constraint
Hi all! Trying to figure out this error I'm getting when running next build. Thought I'd drop it here in case anyone else has run into it or has any tips for debugging:
- info Checking validity of types...
Failed to compile.

../../node_modules/drizzle-orm/column.d-04875079.d.ts:273:11
Type error: Type parameter 'K' has a circular constraint.

271 | } & TUpdate>;
272 | type Simplify<T> = {
> 273 | [K in keyof T]: T[K];
| ^
274 | } & {};
275 | type SimplifyMappedType<T> = [T] extends [unknown] ? T : never;
276 | type ShallowRecord<K extends keyof any, T> = SimplifyMappedType<{
- info Checking validity of types...
Failed to compile.

../../node_modules/drizzle-orm/column.d-04875079.d.ts:273:11
Type error: Type parameter 'K' has a circular constraint.

271 | } & TUpdate>;
272 | type Simplify<T> = {
> 273 | [K in keyof T]: T[K];
| ^
274 | } & {};
275 | type SimplifyMappedType<T> = [T] extends [unknown] ? T : never;
276 | type ShallowRecord<K extends keyof any, T> = SimplifyMappedType<{
17 replies