DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed

后端 未结 3 2214
执笔经年
执笔经年 2021-02-18 20:33

I\'m getting below error on expressJs with Sequelize

DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and shou         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-18 20:45

    Based on my experience

    Go to your file

    app\models\index.js

    const sequelize = new Sequelize(
    ...
        operatorsAliases: 0, // change this to zero
    
    ...
    );
    

    run again

    "node server.js"

提交回复
热议问题