Error TS2307: Cannot find module ‘@adminjs/mongoose’ or its corresponding type declarations. Error integrating mongoose database with AdminJS
Good day, I am trying to integrate a mongoose database into my AdminJS project using Express.js. I have imported all the necessary packages, but when I run the server, I get an error saying that the module @adminjs/mongoose cannot be found. I’m not sure if it’s a compatibility issue, but I have tried uninstalling and reinstalling the package multiple times, and the error persists. If anyone can help me resolve this issue, I would greatly appreciate it. Below is the project code and the error messages: