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;
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
drizzle-kit: v0.19.1
drizzle-orm: v0.27.0
8 Replies
Noahh
NoahhOP2y ago
Reverted to the previous versions of all drizzle packages with the same config (without driver) and it worked fine, let me know if you ned any of my schema or migration info.
Andrii Sherman
Known issue
Andrii Sherman
GitHub
[BUG]:Drizzle-Kit 0.19.0 Fails to Generate Migrations · Issue #781 ...
What version of drizzle-orm are you using? 0.27.0 What version of drizzle-kit are you using? 0.19.0 Describe the Bug I was using Drizzle Kit version of 0.18.1 and generating migrations with this co...
Andrii Sherman
Does that happen on Windows?
uhkriss
uhkriss2y ago
Happens to me on Windows 11
Andrii Sherman
Yeah, then it’s 100% Windows only We are working on a fix Will ping you here
Md Jahidul Islam milon
same issue on windows 10
leonss23
leonss232y ago
same issue, windows 10, try Linux/WSL
Want results from more Discord servers?
Add your server