Node.js 无法通过hbs注册hbs部分。registerPartials()
当我使用help.hbs中的{{>header}}访问头时,我得到了错误Node.js 无法通过hbs注册hbs部分。registerPartials(),node.js,express,hsb,Node.js,Express,Hsb,当我使用help.hbs中的{{>header}}访问头时,我得到了错误部分头找不到 列表项 有人能帮我解决这个错误吗 error: C:\Users\sridhar\Desktop\learning nodejs\nodelab\express\templates\views\help.hbs: The partial header could not be found at Object.invokePartial (C:\Users\sridhar\Desktop\
部分头找不到
error: C:\Users\sridhar\Desktop\learning nodejs\nodelab\express\templates\views\help.hbs: The partial header could not be found
at Object.invokePartial (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\runtime.js:332:11)
at Object.invokePartialWrapper [as invokePartial] (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\runtime.js:84:39)
at Object.eval [as main] (eval at createFunctionContext (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:262:23), <anonymous>:11:28)
at main (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\runtime.js:208:32)
at ret (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\runtime.js:212:12)
at ret (C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:519:21)
at C:\Users\sridhar\Desktop\learning nodejs\nodelab\node_modules\hbs\lib\hbs.js:84:19
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)