0xmigue
0xmigue
DTDrizzle Team
Created by sevenwestonroads on 4/22/2023 in #help
Using Drizzle as a package in Turborepo doesn't work ?
I also figured it out with something similar but I had to install "drizzle-orm" using the -W in the monorepo root
const connection = drizzle(poolConnection, {logger: true});

export {
connection,
cities
};

export type { City };
const connection = drizzle(poolConnection, {logger: true});

export {
connection,
cities
};

export type { City };
13 replies
DTDrizzle Team
Created by sevenwestonroads on 4/22/2023 in #help
Using Drizzle as a package in Turborepo doesn't work ?
Hey @jeanhdev how does your "@mono/database" file structure look like? I keep getting
The requested module 'database/schema' does not provide an export named 'cities'
The requested module 'database/schema' does not provide an export named 'cities'
13 replies