Magical.Puffin
Magical.Puffin
Explore posts from servers
DTDrizzle Team
Created by Magical.Puffin on 4/2/2024 in #help
DrizzleKit Studio TypeError: customResultMapper is not a function
I am trying to get DrizzleKit studio to run with Cloudflare D1. I already saw the existing workaround for the wrangler path issue but I get error message TypeError: customResultMapper is not a function whenever I try to run studio. I have drizzle kit and orm installed:
"drizzle-kit": "^0.20.14",
"drizzle-orm": "^0.30.6",
"drizzle-kit": "^0.20.14",
"drizzle-orm": "^0.30.6",
import type { Config } from 'drizzle-kit';

// Join wrangler path with this file path
import path from 'path';
const wranglerConfigPath = path.resolve(__dirname, 'wrangler.toml');

export default {
schema: './src/lib/db/schema.ts',
out: './drizzle',
driver: 'd1',
dbCredentials: {
wranglerConfigPath: wranglerConfigPath,
dbName: 'prod-d1-tutorial'
}
} satisfies Config;
import type { Config } from 'drizzle-kit';

// Join wrangler path with this file path
import path from 'path';
const wranglerConfigPath = path.resolve(__dirname, 'wrangler.toml');

export default {
schema: './src/lib/db/schema.ts',
out: './drizzle',
driver: 'd1',
dbCredentials: {
wranglerConfigPath: wranglerConfigPath,
dbName: 'prod-d1-tutorial'
}
} satisfies Config;
1 replies