为了账号安全,请及时绑定邮箱和手机立即绑定

访问app.js入口文件时出现TypeError:view is not a constructor

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)

正在回答

2 回答

我安装了也没用啊,怎么回事

0 回复 有任何疑惑可以回复我~

我也遇到了这个错误,后来npm install jade -s 才解决,评论中的修改都试过也没有用,安装了jade就好了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
node+mongodb 建站攻略(一期)
  • 参与学习       91885    人
  • 解答问题       889    个

带你完整实现一个从前端到后端的项目,初中级前端开发工程师必学课程

进入课程

访问app.js入口文件时出现TypeError:view is not a constructor

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信