我正在尝试创建nodejs express应用程序,我在使用路由时遇到了奇怪的问题这是我的server.js的样子const bodyParserconsole.log('server running at port '+port);我收到以下错误:"node_modules/express/lib/router/index.js:458抛出新的TypeError('R
notes'))
console.log(`Example app listening on port ${port}`)但它给了我一个错误Mern course\inotebook\inotebook\Backend\node_modules\express\lib\router\index.js:469
throw new TypeError('Router.use() requires a middleware function