Newt
DTDrizzle Team
•Created by Newt on 4/15/2025 in #help
Type Error when Generating Typebox
the thing is, in Runtime it works without problems, i just get Runtime Errors, i also tried the Examples and i also get Compile Errors there:
https://orm.drizzle.team/docs/typebox#select-schema
Also Tried to Update my TS Config like described here: https://discord.com/channels/1043890932593987624/1318443104927223818
10 replies
DTDrizzle Team
•Created by Newt on 4/15/2025 in #help
Type Error when Generating Typebox
Nope, still, but here is the FULL error:
https://pastebin.com/CFYsN01P
10 replies
DTDrizzle Team
•Created by Newt on 4/15/2025 in #help
Type Error when Generating Typebox
this is my export ^^
10 replies
DTDrizzle Team
•Created by Newt on 4/15/2025 in #help
Type Error when Generating Typebox
table:
10 replies
DTDrizzle Team
•Created by Newt on 4/15/2025 in #help
Type Error when Generating Typebox
My Code:
Code:
10 replies
DTDrizzle Team
•Created by The Rumbling on 12/17/2024 in #help
Cannot generate Typebox schema from Drizzle Enum
My Code:
Code:
8 replies
DTDrizzle Team
•Created by The Rumbling on 12/17/2024 in #help
Cannot generate Typebox schema from Drizzle Enum
I'm encountering a type compatibility issue with Drizzle ORM and TypeBox. When using
createSchemaFactory
from drizzle-typebox with PostgreSQL tables, I'm getting type errors when trying to create schemas. But in Runtime it Works without any Problems, i also Tried to edit my tsconfig to:
Versions:
The error suggests that the PostgreSQL-specific column types (PgColumn) from my table definition aren't compatible with the generic Column type expected by the schema factory functions:
Has anyone encountered similar type mismatches when using PostgreSQL-specific types with the schema factory? Is there a proper way to handle this without type assertions?8 replies