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
坑