Skip to content

Error: Route.get() requires a callback function but got a [object Undefined] #37

@ankitjain-IAM

Description

@ankitjain-IAM

When I execute run.bat, I get below error:

C:\Users\ankitja\Downloads\Hello\node_modules\express\lib\router\route.js:202
throw new Error(msg);
^

Error: Route.get() requires a callback function but got a [object Undefined]
at Route. [as get] (C:\Users\ankitja\Downloads\Hello\node_modules\express\lib\router\route.js:202:15)
at Function.app. [as get] (C:\Users\ankitja\Downloads\Hello\node_modules\express\lib\application.js:482:19)
at module.exports (C:\Users\ankitja\Downloads\Hello\routes\users.js:8:9)
at Object. (C:\Users\ankitja\Downloads\Hello\server.js:26:29)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sample-scim-gateway-app@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sample-scim-gateway-app@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ankitja\AppData\Roaming\npm-cache_logs\2020-08-21T13_24_46_349Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions