배워서 남주는 개발자 :)

에러해결

Error: Invalid Instance definition. Only one auto increment field allowed. #2999 해결방법

핏짜보이 2022. 4. 29. 13:52
반응형

원인 : primary key 속성을 추가하지 않았기 때문

 

관련 자료

https://github.com/sequelize/sequelize/issues/2999

 

Error: Invalid Instance definition. Only one autoincrement field allowed. · Issue #2999 · sequelize/sequelize

module.exports = (sequelize, DataTypes) -> List = sequelize.define 'List', order: type: DataTypes.INTEGER autoIncrement: true this above alert me error: Error: Invalid Instance definitio...

github.com

 

728x90