sql server - Node js knex and mssql error - 'TypeError: _this.driver.Connection is not a constructor' -
not question, more of heads in case else encounteres - while setting new node project, want use knex access mssql database server. i'm initializing knex this:
{ client: 'mssql', connection: { driver: 'msnodesqlv8', server: 'localhost', database:'testdb' options: { trustedconnection: true } }
i error: 'typeerror: _this.driver.connection not constructor'. after lot of googling, couldn't find error message, thought i'd post heads here.
i installed latest knex, mssql, , msnodesqlv8 packages. , that's problem. of mssql v4.x, knex , mssql don't play nice (for now). able fix downgrading mssql package 3.3.
the answer stated @ end of question.
"i installed latest knex, mssql, , msnodesqlv8 packages. , that's problem. of mssql v4.x, knex , mssql don't play nice (for now). able fix downgrading mssql package 3.3."
i able solve problem solution also.
Comments
Post a Comment