NodeJs : TypeError: require(…) is not a function
I think this means that module.exports in your ./app/routes module is not assigned to be a function so therefore require(‘./app/routes’) does not resolve to a function so therefore, you cannot call it as a function like this require(‘./app/routes’)(app, passport). Show us ./app/routes if you want us to comment further on that. It should look something like this; You are exporting a function that can … Read more