drizzle seed with postgress this error: Cannot find package '@electric-sql/pglite'

import { drizzle } from 'drizzle-orm/node-postgres'
import { reset, seed } from 'drizzle-seed'

import { user } from '../schema'
import * as schema from '../schema'

const dbUrl = process.env.NUXT_DATABASE_POSTGRES_URL as string

async function main() {
const db = drizzle(dbUrl)
await reset(db, schema)
await seed(db, { user })
}

main()
import { drizzle } from 'drizzle-orm/node-postgres'
import { reset, seed } from 'drizzle-seed'

import { user } from '../schema'
import * as schema from '../schema'

const dbUrl = process.env.NUXT_DATABASE_POSTGRES_URL as string

async function main() {
const db = drizzle(dbUrl)
await reset(db, schema)
await seed(db, { user })
}

main()
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?