there is a problem with mongoose

const mongoose = require('mongoose')
mongoose.connect(process.env.DB_URI).then(() => {
console.log('connected')
})

 

Unresolved function or method connect()  

 

the aplication runs but i keep getting the error

请先登录再写评论。