'How to remove dependency of msnodesqlV8 from sequelize while creating mssql connection

I am trying to configure connection to mssql using sequelize. Is there any way I can remove dependency on msnodesqlv8?

Below is the snippet I am using to create sequelize object

const sequelize = new Sequelize({
   logging:log,
   dialect: 'mssql',
   dialectModulePath: 'msnodesqlv8/lib/sequelize',
   dialextOptions: {
     connectionString:process.env.connectionString,
     encrypt: false
  },
   operatorAliases:false
})

sequelize.authenticate()
   .then(fuction(res){console.log("Connected successfully")
   .catch(function(error){console.log("Connection Error:", error)

The goal is to migrate the backend to linux. And due to dependency on msnodesqlv8 I am not able to migrate backend to linux from windows. Please do let me know if I am not clear at any part.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source