小编Car*_*nte的帖子

我无法在 NestJS 上使用 Websocket 包

我正在尝试在 Nestjs 上使用 websockets,我安装了依赖项

yarn add @nestjs/websockets @nestjs/platform-socket.io

我为 websockets 生成了一个示例资源

nest g res messagesWs --no-spec

然后这条消息出现在我的终端中

类型错误:this.metadataScanner.getAllMethodNames 不是函数

这是问题的捕获

我能做些什么?PD:抱歉我的英语不好

我搜索该函数 getAllMethodNames 但我没有得到任何东西

javascript websocket node.js nestjs

5
推荐指数
2
解决办法
5937
查看次数

标签 统计

javascript ×1

nestjs ×1

node.js ×1

websocket ×1