運行[email protected] + [email protected] + [email protected] + [email protected]。 由於某種原因出現以下錯誤。有人知道這意味着什麼嗎?visitFunction錯誤是什麼意思?
我不認爲我做任何奇怪的事情。這是當我做發生:res.render(view, response);
Property 'visitFunction' of object #<Object> is not a function
at Object.Compiler.visitNode (/app/node_modules/jade/lib/compiler.js:176:32)
at Object.Compiler.visit (/app/node_modules/jade/lib/compiler.js:161:10)
at Object.Compiler.visitBlock (/app/node_modules/jade/lib/compiler.js:253:12)
at Object.Compiler.visitNode (/app/node_modules/jade/lib/compiler.js:176:32)
at Object.Compiler.visit (/app/node_modules/jade/lib/compiler.js:161:10)
at Object.Compiler.compile (/app/node_modules/jade/lib/compiler.js:78:10)
at parse (/app/node_modules/jade/lib/jade.js:101:23)
at Object.exports.compile (/app/node_modules/jade/lib/jade.js:163:9)
at Object.exports.render (/app/node_modules/jade/lib/jade.js:215:17)
at View.exports.renderFile [as engine] (/app/node_modules/jade/lib/jade.js:243:13)
它必須是這個版本的Jade中的錯誤?我將我的Jade版本降級到0.25,現在它工作正常。降級通過:'npm install jade @ 0.25' –