Error trying to create migration file

I added a new table to my schema.ts and tried running a migration and get the following error - I removed the new table definition from the schema file and it's still failing with the same error if I run the migration. I can't see anything obvious in the error to track it down to where in the scheme file it's unhappy. No config path provided, using default 'drizzle.config.ts' Reading config file '/.../drizzle.config.ts' SyntaxError: Unexpected token { in JSON at position 28734 at JSON.parse (<anonymous>) at snapshots.reduce.malformed (/.../node_modules/drizzle-kit/index.cjs:17791:28) at Array.reduce (<anonymous>) at validateWithReport (/.../node_modules/drizzle-kit/index.cjs:17789:32) at prepareMigrationFolder (/.../node_modules/drizzle-kit/index.cjs:17831:22) at prepareAndMigrateMySql (/.../node_modules/drizzle-kit/index.cjs:14208:40) at Command.<anonymous> (/.../node_modules/drizzle-kit/index.cjs:51999:9)
1 Reply
xamarot
xamarot2y ago
How does your config look?
Want results from more Discord servers?
Add your server