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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -