DeprecationWarning:布尔值已传递给options.operatorsAliases。这是v5的无操作选项,应将其删除


11

我在使用Sequelize的expressJs上遇到错误

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

有解决这个问题的主意吗?

Answers:


23

这不是错误,只是警告,表明在v5中不推荐将boolean值传递给operatorsAliasesin sequelize options

要删除警告,请将布尔值分别用'1'或替换'0'为true和false。


@leochet我将布尔值更改为Integer,但仍显示相同的错误。
拉巴尼号

@Rabbani_您是否使用了包含数字的整数或字符串?
leoschet

我正在使用Integer。
拉巴尼号

你需要一个绳子
leoschet
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.