Monday, 25 May 2020

Error : Set the value to `true` or `false` explicitly to silence this message. node_modules\mssql\lib\tedious\connection-pool.js:61:23

Issue :

While creating the NestJS with MSSQl application after creating the ormconfig and take the reference .
Getting the warning message as :
[Nest] 12236   - 05/23/2020, 6:27:56 PM   [NestFactory] Starting Nest application...
tedious deprecated The default value for `config.options.enableArithAbort` will change from `false` to `true` in the next major version of `tedious`.

Solution

In your connection options you should add:
extra: {
  options: {
     enableArithAbort: true // or `false`. Just set it explicitly to silence the warning message
  }
}

No comments:

Post a Comment