drizzle connection missing schema types

Hello, wondering what changed in drizzle-orm 0.30+? I cannot pass the schema anymore to the drizzle function to get types.
No description
5 Replies
Dane
Dane2mo ago
ignore the .firstName() part...
Mario564
Mario5642mo ago
@dane.stevens I see you're importing the schema from "database", what is that pointing to? If you're schema lives in a file named database.ts and lives in the same folder, do "./database" instead
Dane
Dane2mo ago
"database" is pointing to a package inside a turborepo monorepo schema itself has all the correct types, it just isn't being passed through to the db constant
Mario564
Mario5642mo ago
This may or may not be a monorepo specific issue Hey @rphlmr ⚡, think you can help here?
rphlmr ⚡
rphlmr ⚡2mo ago
Can you share your tsconfig or check you have
{
"compilerOptions": {
"strict": true, // this
...
}
}
{
"compilerOptions": {
"strict": true, // this
...
}
}
Want results from more Discord servers?
Add your server