Tuesday 26 May 2020

Nestjs Error: Cannot find module './app.controller'



Issue :
------------------------------------
internal/modules/cjs/loader.js:797
    throw err;
    ^

Error: Cannot find module './app.controller'
Require stack:
- C:\Users\DELL\Documents\Nestjs-api\app\api\dist\src\app.module.js
- C:\Users\DELL\Documents\Nestjs-api\app\api\dist\src\main.js
------------------------------------
Solution
------------------------------------
open nodejs command
npm run prebuild
------------------------------------

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
  }
}