sequelize.import is not a function

后端 未结 3 863
梦毁少年i
梦毁少年i 2021-02-13 04:33

I\'m new to express.

I want to import files to sequelize and declared:

const model = sequelize.import(path.join(__dirname, file))

                                 


        
3条回答
  •  甜味超标
    2021-02-13 05:05

    As of now I was able to fix the issue by downgrading the sequelize module version in your package.json to "sequelize": "^5.22.3",. do let me know if it is also fixed on your side.

    Edit: any sequelize version under < 6.0.0 should work as normal

提交回复
热议问题