【问题标题】:this.assertNotInPreviewMode not found when running a NestJS microservice运行 NestJS 微服务时找不到 this.assertNotInPreviewMode
【发布时间】:2023-02-05 07:27:20
【问题描述】:

我有一个使用 NestJS 的微服务设置。但是,运行它时出现以下错误。

this.assertNotInPreviewMode('listen');
             ^

TypeError: this.assertNotInPreviewMode is not a function

我已经使用npm i --save @nestjs/microservices 安装了 NestJS 微服务包。不知道为什么该功能不存在。

【问题讨论】:

    标签: node.js nestjs microservices nest


    【解决方案1】:

    我今天遇到了同样的错误,npm update 帮助了我

    【讨论】:

      猜你喜欢
      • 2022-12-24
      • 1970-01-01
      • 2021-01-12
      • 2020-01-14
      • 2021-08-06
      • 2022-11-25
      • 2023-01-13
      • 2020-02-04
      • 2020-05-29
      相关资源
      最近更新 更多