1 comment

looks related to https://youtrack.jetbrains.com/issue/WEB-28392

Try changing code to

module.exports = Todo

and

var Todo = require('./models/todo');

this should help.

Still Webstorm has lots of issues with mongoose code - doesn't understand mongoose.model(), etc

see https://youtrack.jetbrains.com/issue/WEB-22317 and linked tickets

1

Please sign in to leave a comment.