drizzle-kit generate:pg throws ERR_INVALID_RETURN_PROPERTY_VALUE

I have my drizzle.config.ts file unchanged (besides adding
driver
) from before the recent update (see below), but after updating to latest I am getting an error: TypeError [ERR_INVALID_RETURN_PROPERTY_VALUE]: Expected a url string to be returned for the "url" from the "drizzle-kit/loader.mjs 'resolve'" function but got instance of String.

import { Config } from 'drizzle-kit';

export default {
  schema: './src/db/schema/*',
  out: './migrations',
  driver: 'pg',
} satisfies Config;


drizzle-kit: v0.19.1
drizzle-orm: v0.27.0
Was this page helpful?