node js type error

Solutions on MaxInterview for node js type error by the best coders in the world

showing results for - "node js type error"
Brandon
29 Mar 2016
1TypeError: res.status is not a function
2    at C:\Users\lenovo\Desktop\MERN\backend\app.js:16:8
3    at Layer.handle_error (C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\layer.js:71:5)
4    at trim_prefix (C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\index.js:315:13)
5    at C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\index.js:284:7
6    at Function.process_params (C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\index.js:335:12)
7    at Immediate.next (C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\index.js:275:10)
8    at Immediate.<anonymous> (C:\Users\lenovo\Desktop\MERN\backend\node_modules\express\lib\router\index.js:635:15)
9    at processImmediate (internal/timers.js:458:21)
10
11
12reason:-(error,res,req,next)  order of argument is incorrect req after before res
13solution:-(error,req,res,next)
14