Migrating app to TypeScript, getting error TypeError: Cannot destructure property 'client' of 'db.c

Not sure what’s causing the error of TypeError: Cannot destructure property 'client' of 'db.config.connection' as it is undefined. when trying to run strapi dev. Have made sure all files are fine after switching to TS.

This topic has been created from a Discord post (1292612303186821121) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

anyone? this seems to be a common problem with apps that contain a .tsconfig