各位前辈,我的 Node 代码收到以下报错,我实在看不懂报错的意思和应该怎样解决,求指点 if (fn.handle && fn.set) app = fn; ^ TypeError: Cannot read property 'handle' of undefined at Function.app.use (/Users/sylvia/Documents/FE/Daily-Learning/Node/final/node_modules/express/lib/application.js:110:9) at Object.<anonymous> (/Users/sylvia/Documents/FE/Daily-Learning/Node/final/server.js:46:8) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:140:18) at node.js:1043:3
以下为全部代码 var express = require('express'); var expressStatic = require('express-static'); var mysql = require('mysql'); var cookieParser = require('cookie-parser'); var cookieSession = require('cookie-session'); var bodyParser = require('body-parser'); var consolidate = require('consolidate'); var expressRoute = require('express-route'); var multer = require('multer'); var multerObj = multer({dest:'./static/upload'});