[英]TypeError: Cannot read property 'then' of undefined. Getting this error when I am trying to run updatefirst function
[英]Getting the same error when trying to run my application. “TypeError: this.microservicesModule.register is not a function”
每次我尝试运行我的应用程序时,我都会遇到同样的错误:
“UnhandledPromiseRejectionWarning: TypeError: this.microservicesModule.register is not a function at NestApplication.registerModules (C:\Users\\Documents\AWD\ClientPortalAPI\node_modules@nestjs\core\nest-application.js:86:38) 在 NestApplication。在里面”...
该应用程序似乎可以在其他计算机上运行,我尝试再次从 repo 下载它,重新安装所有 npm 包,全局和本地,分别从@nestjs 安装所有缺少的依赖项,但我总是得到同样的错误。 知道会是什么吗?
感谢您的帮助
安装以下两个依赖项有效:
npm i -S @nestjs/websockets
npm i -S @nestjs/microservices
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.