Niiju
Niiju
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
no luck. I didn't do anything else other than drizzle-kit pull and creating a zod schema
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
export const selectUserSchema = createSelectSchema(usersInAuth);
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
Argument of type 'PgTableWithColumns<{ name: "users"; schema: "auth"; columns: { id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; ... 4 more ...; generated: undefined; }, {}, {}>; ... 6 more ...; updatedAt...' is not assignable to parameter of type 'Table<TableConfig<Column<any, object, object>>>'.
The types of '_.config.columns' are incompatible between these types.
Type '{ id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>; ... 6 more ......' is not assignable to type 'Record<string, Column<any, object, object>>'.
Property 'id' is incompatible with index signature.
Type 'PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to type 'Column<any, object, object>'.
The types of 'table._.config.columns' are incompatible between these types.
Type 'Record<string, PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>>' is not assignable to type 'Record<string, Column<any, object, object>>'.
'string' index signatures are incompatible.
Type 'PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>' is not assignable to type 'Column<any, object, object>'.
Property 'config' is protected but type 'Column<T, TRuntimeConfig, TTypeConfig>' is not a class derived from 'Column<T, TRuntimeConfig, TTypeConfig>'.deno-ts(2345)
Argument of type 'PgTableWithColumns<{ name: "users"; schema: "auth"; columns: { id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; ... 4 more ...; generated: undefined; }, {}, {}>; ... 6 more ...; updatedAt...' is not assignable to parameter of type 'Table<TableConfig<Column<any, object, object>>>'.
The types of '_.config.columns' are incompatible between these types.
Type '{ id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>; ... 6 more ......' is not assignable to type 'Record<string, Column<any, object, object>>'.
Property 'id' is incompatible with index signature.
Type 'PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to type 'Column<any, object, object>'.
The types of 'table._.config.columns' are incompatible between these types.
Type 'Record<string, PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>>' is not assignable to type 'Record<string, Column<any, object, object>>'.
'string' index signatures are incompatible.
Type 'PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>' is not assignable to type 'Column<any, object, object>'.
Property 'config' is protected but type 'Column<T, TRuntimeConfig, TTypeConfig>' is not a class derived from 'Column<T, TRuntimeConfig, TTypeConfig>'.deno-ts(2345)
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
sorry I didnt see :
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
thank you, I tried it but still get the error :/ did you do anything else?
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
what's the version you downgraded to ?
12 replies
DTDrizzle Team
Created by pedrocarlo on 11/2/2024 in #help
Drizzle-Zod not supported in latest version of Drizzle-ORM
I'm having this issue as well
12 replies