there are several issues with the same theme, but I could not solve my problem.
Error: Route.post() requires callback functions but got a [object Undefined] at R
For me it was a simple, stupid typo.
I had module.export = { instead of module.exports = {
module.export = {
module.exports = {