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
坑
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
网友评论