dinhanhthi
dinhanhthi
DTDrizzle Team
Created by dinhanhthi on 1/25/2025 in #help
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.
1 replies