(node:6340) [SEQUELIZE0004] DeprecationWarning: A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.

Quiero solucionar el error

¿Qué puedo hacer para evitar este mensaje de advertencia?

Git hub es esto https://github.com/hyunsokstar/node_bird_55

1
hyun k 18 oct. 2019 a las 08:09

1 respuesta

La mejor respuesta

Intente usar este código como config.js:

const Sequelize = require("sequelize");
module.exports = { 
  development: {
    "username": "root",
	"password": "nodejsbook",
	"database": "react-nodebird",
	"host": "127.0.0.1",
	"dialect": "mysql",
    operatorsAliases: Sequelize.Op,
  },  
  test: {
   "username": "root",
	"password": "nodejsbook",
	"database": "react-nodebird",
	"host": "127.0.0.1",
	"dialect": "mysql",
    operatorsAliases: Sequelize.Op,
  },  
  production: {
   "username": "root",
	"password": "nodejsbook",
	"database": "react-nodebird",
	"host": "127.0.0.1",
	"dialect": "mysql",
    operatorsAliases: Sequelize.Op,
  }
}

Viene de aquí: https://github.com/sequelize/sequelize/issues/8417

2
Pierre Nectoux 18 oct. 2019 a las 07:47