Unable to resolve "drizzle-seed"

import { drizzle } from "drizzle-orm/expo-sqlite";
import { openDatabaseSync } from "expo-sqlite";
import { exercise_label, exercises, labels, sets } from "@/db/schema";
import { reset, seed } from "drizzle-seed";

export const expodb = openDatabaseSync("db.db", {
enableChangeListener: true,
});
export const db = drizzle(expodb);

export async function seedDb() {
return await seed(db, {
exercise_label,
exercises,
labels,
sets,
});
}
import { drizzle } from "drizzle-orm/expo-sqlite";
import { openDatabaseSync } from "expo-sqlite";
import { exercise_label, exercises, labels, sets } from "@/db/schema";
import { reset, seed } from "drizzle-seed";

export const expodb = openDatabaseSync("db.db", {
enableChangeListener: true,
});
export const db = drizzle(expodb);

export async function seedDb() {
return await seed(db, {
exercise_label,
exercises,
labels,
sets,
});
}
When i run this code in expo go app i get the following error: Unable to resolve "drizzle-seed" from "db\index.ts" I do however get all the type information for the seed function when i import it. "drizzle-orm": "^0.37.0", "drizzle-seed": "^0.1.2", "drizzle-kit": "^0.29.1", "expo-sqlite": "~15.0.3",
2 Replies
Mario564
Mario5642w ago
CC: @Andrii Sherman CC: @OleksiiKH
Thomsr
ThomsrOP2w ago
Let me know if more information is needed, i am glad to help.
Want results from more Discord servers?
Add your server