hapi-sequelize 3.0.4支持Hapi版本17.2.0

时间:2018-01-30 05:02:10

标签: hapijs

我正在尝试使用以下配置将hapi-sequelize 3.0.4与hapi.js 17.2.0一起使用:

{
    plugin: require("hapi-sequelize"),
    options:[
      {
        name: "mysql", // identifier
    models: ["./plugins/sequelize/models/*.js"], // paths/globs to model files
    sequelize: new Sequelize(
      process.env.DB_NAME,
      process.env.DB_USER,
      process.env.DB_PASS,
      {
        host: process.env.DB_HOST,
        dialect: "mysql",
        port: process.env.DB_PORT ? parseInt(process.env.DB_PORT) : 3306
      }
    ), // sequelize instance
    sync: false, // sync models - default false
    forceSync: false // force sync (drops tables) - default false
  }
]

}

它出现以下错误:

name[1] --missing---

这是hapi-sequelize的最新版本与hapi.js 17.2.0兼容吗?

0 个答案:

没有答案