Poulet
Poulet
DTDrizzle Team
Created by Poulet on 10/30/2023 in #help
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?
2 replies