© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•15mo ago•
3 replies
Xpecial Poo

Error With types from Drizzle

Since i upgraded to latest version of drizzle i am not getting any types and alot of errors. Example:
Property 'config' is protected but type 'Column<T, TRuntimeConfig, TTypeConfig>' is not a class derived from 'Column<T, TRuntimeConfig, TTypeConfig>'
Property 'config' is protected but type 'Column<T, TRuntimeConfig, TTypeConfig>' is not a class derived from 'Column<T, TRuntimeConfig, TTypeConfig>'

drizzle-orm: "0.36.3"
drizzle-kit: "0.28.1"

Introspected the schema and relation files from db.
example:
export const users = pgTable(
  'users',
  {
    archived: boolean().default(false).notNull(),
    externalId: text('external_id').notNull(),
    id: uuid()
      .default(sql`uuid_generate_v4()`)
      .primaryKey()
      .notNull(),
    language: language().notNull(),
    name: text().notNull(),
    type: userType().notNull(),
    updatedAt: timestamp('updated_at', { mode: 'string' }),
  },
  (table) => {
    return {
      uqExternalId: unique('uq_external_id').on(table.externalId),
      usersExternalIdKey: unique('users_external_id_key').on(table.externalId),
    }
  },
)
export const users = pgTable(
  'users',
  {
    archived: boolean().default(false).notNull(),
    externalId: text('external_id').notNull(),
    id: uuid()
      .default(sql`uuid_generate_v4()`)
      .primaryKey()
      .notNull(),
    language: language().notNull(),
    name: text().notNull(),
    type: userType().notNull(),
    updatedAt: timestamp('updated_at', { mode: 'string' }),
  },
  (table) => {
    return {
      uqExternalId: unique('uq_external_id').on(table.externalId),
      usersExternalIdKey: unique('users_external_id_key').on(table.externalId),
    }
  },
)


What could be going wrong? Can anyone help?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Drizzle types error
Drizzle TeamDTDrizzle Team / help
17mo ago
drizzle-zod with custom types
Drizzle TeamDTDrizzle Team / help
3y ago
Defining nested types with Drizzle Zod
Drizzle TeamDTDrizzle Team / help
14mo ago
Drizzle-zod createInsertSchema types
Drizzle TeamDTDrizzle Team / help
3y ago