Using drizzle-kit:generate with path aliases

Hey guys 👋 I'm currently trying to migrate my codebase to use drizzle, however I'm facing an issue related to how drizzle-kit handles TS paths. I am using a NX monorepo, with path aliases. I have domain libs, let's say @project/domain1 and @project/domain2, exporting enums I would like to use in my drizzle schema. I have created a new lib that will host the schema, @project/drizzle-schema. In @project/drizzle-schema, when defining the schema I use : import { myEnum } from @project/domain1 However, when running drizzle-kit generate, module @project/domain1 cannot be found. Is there a way to pass a tsconfig to drizzle.config.ts ? Or another way to fix my problem? I came accross this issue which seems similar https://github.com/drizzle-team/drizzle-orm/issues/1228 Thanks 🙏
GitHub
[BUG]: drizzle.config.ts doesn't follow tsconfig.json for modul...
What version of drizzle-orm are you using? ^0.28.6 What version of drizzle-kit are you using? ^0.19.13 Describe the Bug if i import using '@/app/lib/env', it doesn't work but if i impor...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server