📜  错误:部分目录必须是字符串或配置对象 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:13.691000             🧑  作者: Mango

代码示例1
const handlebarOptions = {
  viewEngine: {
    extName: '.hbs',
    partialsDir: 'src/path',
    layoutsDir: 'src/path',
    defaultLayout: 'email.hbs',
  },
  viewPath: 'src/path',
  extName: '.hbs',
};

transporter.use('compile', hbs(handlebarOptions));