Nestjs Nest.js-Nest cli未获取最新的文件更改

Nestjs Nest.js-Nest cli未获取最新的文件更改,nestjs,Nestjs,我写了一个非常基本的控制器,比如 @Controller('tasks')) 导出类TasksController{ 构造函数(私有任务服务:任务服务){} @获取(':id') getById(@Param('id')id:string):TaskDto{ log('Get Called>>>',id); const task=this.tasksService.getById(id); const dto=TaskMapper.toDto(任务); 返回dto; } @删除(“:id”) 删

我写了一个非常基本的控制器,比如

@Controller('tasks'))
导出类TasksController{
构造函数(私有任务服务:任务服务){}
@获取(':id')
getById(@Param('id')id:string):TaskDto{
log('Get Called>>>',id);
const task=this.tasksService.getById(id);
const dto=TaskMapper.toDto(任务);
返回dto;
}
@删除(“:id”)
删除(@Param('id')id:string):无效{
log('Delete Called>>>',id);
this.tasksService.remove(id);
}
}
我使用下面的URI通过Postman(也在Powershell中尝试过)使用各自的方法GET、DELETE调用每个端点

现在,最奇怪的事情是CLI不知何故被卡在了控制器文件的一个版本上。现在,即使我删除了整个控制器,cli仍在映射控制器的不同方法

我已经尝试过通过各种Thread、npm和Direct nest命令启动应用程序的不同方法,但似乎没有任何东西能够获得最新的文件更改


我已经将整个代码浏览了无数次,但无法确定问题所在

最后,解决方案是删除“dist”文件夹


但是我还是不明白为什么这个问题一开始就发生了

或者,您可以在调用
>纱线开始之前运行
tsc
。。我现在也有同样的问题