outer.use() requires a middleware function but got a Object

JavaScript
module.exports = router;module.exports = router;

Source

Also in JavaScript: