I have used a connection statement similar to this before, without issue. But now I get a message TypeError:Mongoose.connect is not a function..
const mongoose = require('mongoose');
mongoose.connect("mongodb://localhost:27017/myDB");
What on earth does this mean, and why does it want a function?
ps: I reinstalled Mongoose with npm but it made no difference.