我正在开发一个通过NestJS访问postgres数据库的TypeORM应用程序。在开发模式(npm run start:debug)中,一切都运行得很好。但是,在使用npm run build构建并试图通过node /dist/main.js运行应用程序之后,它无法从以下错误开始:import { TypeOrmModule } from '@nestjs
我的nestjs WebSocketGateway服务器在dev模式下工作得很好,但在生产模式下,我可以看到那些试图连接的客户机,但是服务器引发了下面的异常2022-02-08T08:33:33.901Z这里我的代码import { SubscribeMessage, WebSocketGateway, WebSocketServer, } from '@nestjs/websockets'; import}) export class E