執行app.js 出現下面錯誤 不知道哪出問題了
TypeError: View is not a constructor
? ?at Function.render (/Users/liubo/Desktop/imooc/node_modules/express/lib/application.js:570:12)
? ?at ServerResponse.render (/Users/liubo/Desktop/imooc/node_modules/express/lib/response.js:1008:7)
? ?at /Users/liubo/Desktop/imooc/app.js:13:6
? ?at Layer.handle [as handle_request] (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/layer.js:95:5)
? ?at next (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/route.js:137:13)
? ?at Route.dispatch (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/route.js:112:3)
? ?at Layer.handle [as handle_request] (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/layer.js:95:5)
? ?at /Users/liubo/Desktop/imooc/node_modules/express/lib/router/index.js:281:22
? ?at Function.process_params (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/index.js:335:12)
? ?at next (/Users/liubo/Desktop/imooc/node_modules/express/lib/router/index.js:275:10)
2017-10-20
view is not a constructor 在app.js 第6行