Skip to content

[BUG]: Cannot read properties of undefined (reading 'requestLayout') when running drizzle-kit introspect (MySQL) #5488

@hien11dev

Description

@hien11dev

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

1.0.0-beta.17

What version of drizzle-kit are you using?

1.0.0-beta.17

Other packages

mysql2@3.19.1

Describe the Bug

Running npx drizzle-kit pull against a MySQL database fails with:

Error Cannot read properties of undefined (reading 'requestLayout')

Console output:

[✓] 0 tables fetching
[✓] 0 columns fetching
[✓] 0 indexes fetching
[✓] 0 foreign keys fetching
[✓] 0 policies fetching
[✓] 0 check constraints fetching
[✓] 0 views fetching
Error Cannot read properties of undefined (reading 'requestLayout')

Environment

  • drizzle-kit: 1.0.0-beta.17
  • drizzle-orm: 1.0.0-beta.17

Drizzle config

export default defineConfig({
  out: './src/database',
  dialect: 'mysql',
  schema: './src/database/schema.ts',
  dbCredentials: {
    database: process.env.DB_DATABASE,
    host: process.env.DB_HOST,
    port: process.env.DB_PORT,
    password: process.env.DB_PASSWORD,
    user: process.env.DB_USER,
  },
  casing: 'snake_case',
  introspect: { casing: 'camel' },
  strict: true,
  verbose: true,
  breakpoints: true,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/fixed-in-betaThis bug has been fixed in beta (or will be soon).

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions