Unexpected error happened š
import { env } from "@/env.mjs";
import type { Config } from "drizzle-kit";
const path = "./src/server/lib/db";
export default {
schema: `${path}/schema`,
out: path,
dialect: "turso",
dbCredentials: {
url: env.TURSO_DATABASE_URL,
authToken: env.TURSO_AUTH_TOKEN,
},
verbose: true,
} satisfies Config;
import { env } from "@/env.mjs";
import type { Config } from "drizzle-kit";
const path = "./src/server/lib/db";
export default {
schema: `${path}/schema`,
out: path,
dialect: "turso",
dbCredentials: {
url: env.TURSO_DATABASE_URL,
authToken: env.TURSO_AUTH_TOKEN,
},
verbose: true,
} satisfies Config;
TypeError: Cannot read properties of undefined (reading 'avatars')
at https://local.drizzle.studio/index.js:641:612
at Array.map (<anonymous>)
at pull (https://local.drizzle.studio/index.js:641:483)
at async pull (https://local.drizzle.studio/index.js:641:5909)
at async zKl (https://local.drizzle.studio/index.js:14267:56741)
TypeError: Cannot read properties of undefined (reading 'avatars')
at https://local.drizzle.studio/index.js:641:612
at Array.map (<anonymous>)
at pull (https://local.drizzle.studio/index.js:641:483)
at async pull (https://local.drizzle.studio/index.js:641:5909)
at async zKl (https://local.drizzle.studio/index.js:14267:56741)
..
ā index.ts
ā main.ts
ā relations.ts
..
ā index.ts
ā main.ts
ā relations.ts
{
"drizzle-version": "3.0.0",
"drizzle-global": {
"state": {
"showCounts": true,
"flatSchemas": false,
"dataFormats": null
},
"version": 0
}
}
{
"drizzle-version": "3.0.0",
"drizzle-global": {
"state": {
"showCounts": true,
"flatSchemas": false,
"dataFormats": null
},
"version": 0
}
}
1 Reply
@whoami Can you show the definition in which the problematic column is present?