Errors while initializing MongoDB with Nestjs/Angular
This is most likely related to Mongoose v5.11.0 which added its own types. Reverting to v5.10.x should fix it
New mongoose v5.11.x released its own types definition, so you shouldn't use @types/mongoose anymore https://github.com/Automattic/mongoose/issues/9606#issuecomment-736710621
I had this bug too , and change dependencies (mongoose) didn't work. just add this to compilerOptions in tsconfig.json
"skipLibCheck": true
maybe it is bad practice but ...