美文网首页
sequelize 异常:something that's no

sequelize 异常:something that's no

作者: noyanse | 来源:发表于2021-03-31 16:08 被阅读0次
  throw new Error(`${source.name}.${_.lowerFirst(Type.name)} called with something that's not a subclass of Sequelize.Model`);

找了半天,原来这种煞笔错误是因为app.model.DataName导致的,
不要驼峰,改成 第一个大写,其它小写:
正确操作: app.model.Dataname

相关文章

网友评论

      本文标题:sequelize 异常:something that's no

      本文链接:https://www.haomeiwen.com/subject/wwfahltx.html