throw new TypeError(‘Router.use() requires a middleware function but got a ‘ + gettype(fn))
^
TypeError: Router.use() requires a middleware function but got a Object
I confuse this problem how solve these error can help me for solving these problem.
New contributor
Dinesh Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.