Cannot run Studio with IndexedDB setup for PGlite

Hi everyone, I start my PGlite setup with
const client = new PGlite('idb://xxxx');
const db = drizzle({client});
const client = new PGlite('idb://xxxx');
const db = drizzle({client});
In drizzle.config.ts,
export default defineConfig({
dialect: 'postgresql',
schema: './src/db/schema.ts',
out: './src/db/migrations',
driver: 'pglite',
dbCredentials: {
url: 'idb://xxxx'
}
})
export default defineConfig({
dialect: 'postgresql',
schema: './src/db/schema.ts',
out: './src/db/migrations',
driver: 'pglite',
dbCredentials: {
url: 'idb://xxxx'
}
})
But there is error:
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/xxx/git/xxx/drizzle.config.ts'
TypeError: Cannot read properties of null (reading 'open')
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/xxx/git/xxx/drizzle.config.ts'
TypeError: Cannot read properties of null (reading 'open')
Do you know where is the problem? Thanks.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?