ERR_MODULE_NOT_FOUND while generating migration files

import type { Config } from 'drizzle-kit';

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


I have imported one schema file into another for an fk relationship. When I run the generate command, I get the following error Error [ERR_MODULE_NOT_FOUND]: Cannot find module
Was this page helpful?