Server Not Running ExpressJs #92
Replies: 2 comments 6 replies
-
@SaibNadeem28 the route handle is expecting a callback function. Kindly drop a screenshot of your route |
Beta Was this translation helpful? Give feedback.
6 replies
-
@SaibNadeem28 , I hope that helps you. You can consider building with ExpressWebJs. Check the docs to get started ExpressWebJs. Will be closing this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After re checking every routes and every other spell check errors still the server is not running
\server\node_modules\express\lib\router\route.js:211
throw new Error(msg);
^
Error: Route.post() requires a callback function but got a [object Undefined]
at Route. [as post] (C:\Users\LENOVO\Downloads\food-app (menu images added)\food-app (menu images added)\food-app\server\node_modules\express\lib\router\route.js:211:15)
at proto. [as post] (C:\Users\LENOVO\Downloads\food-app (menu images added)\food-app (menu images added)\food-app\server\node_modules\express\lib\router\index.js:521:19)
at Object. (C:\Users\LENOVO\Downloads\food-app (menu images added)\food-app (menu images added)\food-app\server\Router\router.js:43:8)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at Object. (C:\Users\LENOVO\Downloads\food-app (menu images added)\food-app (menu images added)\food-app\server\index.js:56:16)
Beta Was this translation helpful? Give feedback.
All reactions