connect-mongo latest version return some error in my project
As per your error it shows you have Express 4.16.2 and mongodb 2.2.35. 

As per NPM Mongo Blog here you can check out the compatibility . As well as for connection integration of Express 4.x.

The sample connection code should be as mentioned below for Express 4.x, 5.0 and Connect 3.x:

const session = require('express-session');
const MongoStore = require('connect-mongo')(session);

app.use(session({
    secret: 'foo',
    store: new MongoStore(options)
}));


For further information see here and here