Can't use ts alias in schema related files with drizzle-kit

Hey 👋🏿 I have a @ -> src path alias setup in my tsconfig. I made use of it in one of my schema files: ex: import { tableA } from '@/lib/entities/tableA/schema whenever I run drizzle-kit generate:XX, I get this error:
Cannot find module '@/lib/entities/tableA/schema'
Cannot find module '@/lib/entities/tableA/schema'
How can I make drizzle-kit work with my custom aliases?
1 Reply
Angelelz
Angelelz14mo ago
You'll have to run it with either tsc or tsx, I don't remember, and set them up so they read your tsconfig
Want results from more Discord servers?
Add your server