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)
Include Drizzle schema files
..
ā”œ index.ts
ā”œ main.ts
ā”” relations.ts
..
ā”œ index.ts
ā”œ main.ts
ā”” relations.ts
Include Drizzle local storage
{
"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
}
}
Include introspected database schema {}
No description
1 Reply
Mario564
Mario564ā€¢4d ago
@whoami Can you show the definition in which the problematic column is present?
Want results from more Discord servers?
Add your server