Question: I cant seem to locate where the error is coming from as the app compiled with `Found 0 errors. Watching for file changes.` I have seen similar resolve on StackOverflow but none seem to address the issue

Here is the stack trace

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

Error: Cannot find module './app.controller'
Require stack:
- C:\Users\DELL\Documents\DokunFiles\Nestjs\app\api\dist\src\app.module.js
- C:\Users\DELL\Documents\DokunFiles\Nestjs\app\api\dist\src\main.js

```

With the appModule below, the app controller is properly imported into the app module

app.module.ts

```
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';

import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserModule } from './user/user.module';

@Module({
  imports: [MongooseModule.forRoot(process.env.MONGO_URI,
    {
      useNewUrlParser: true,
      useUnifiedTopology: true
    })
    , UserModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule { }

```

app.controller.ts

```
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }
}

```

Answer: 
Look for `"incremental": true` in your `tsconfig.json` file. The true makes incremental updates. Setting it to false hopefully will save you having to clean `dist` every time
Check file extension. In my case file with controller has .js extension, but must .ts