Introspect command failing

I'm setting up Drizzle for the first time, I'm trying to get the introspect command to run with mysql / planetscale.

When I run introspect I get "Expected undefined or a fully resolved URL string to be returned for the "responseURL" from the "drizzle-kit/loader.mjs 'load'" function but got instance of String.". Has anyone seen this one before?

package.json

"scripts": {
  "introspect": "drizzle-kit introspect:mysql"
}


Config

export default {
  schema: './src/db/*',
  out: './drizzle',
  driver: 'mysql2',
  dbCredentials: {
    connectionString: process.env.DATABASE_URL!,
  },
} satisfies Config
Was this page helpful?