How to use mongoose on NestJS

I import MongooseModule and use it according the documentation of NestJS and when I compile the server locally I get this error node_modules/mongoose/index.d.ts:1883:33 – error TS2339: Property ‘…