We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在vscode中的截图如下:
当然,编译也是不过的:
> tsc src/main.ts:13:4 - error TS2339: Property 'on' does not exist on type 'WebsocketClient'. 13 ws.on('READY', (wsdata: any) => { ~~
├── @types/node@18.13.0 -> ./node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node ├── axios@1.3.2 -> ./node_modules/.pnpm/axios@1.3.2/node_modules/axios ├── dotenv@16.0.3 -> ./node_modules/.pnpm/dotenv@16.0.3/node_modules/dotenv ├── qq-guild-bot@2.9.5 -> ./node_modules/.pnpm/qq-guild-bot@2.9.5/node_modules/qq-guild-bot ├── ts-node@10.9.1 -> ./node_modules/.pnpm/ts-node@10.9.1_4bewfcp2iebiwuold25d6rgcsy/node_modules/ts-node └── typescript@4.9.5 -> ./node_modules/.pnpm/typescript@4.9.5/node_modules/typescript
nodejs v16.14.0 pnpm 7.2.1
The text was updated successfully, but these errors were encountered:
添加这个依赖可以解决
"dependencies": { "@types/ws": "^8.2.0", }
Sorry, something went wrong.
fix: 修复 ws 类型错误(tencent-connect#80)
dcb5388
No branches or pull requests
描述
在vscode中的截图如下:
当然,编译也是不过的:
依赖
环境
nodejs v16.14.0
pnpm 7.2.1
The text was updated successfully, but these errors were encountered: