[英]Angular Compile error with stream-chat-js package. No exported member 'Client'
I am getting this error when trying to compile an Angular application with the Node version of the Stream Chat package.尝试使用 Stream Chat package 的 Node 版本编译 Angular 应用程序时出现此错误。
ERROR in node_modules/getstream/types/getstream/index.d.ts(12,11): error TS2694: Namespace '"/Users/.../app/node_modules/stream-chat/types/stream-chat/index"' has no exported member 'Client'.
This error refers to this function from the file reference above:此错误是指上述文件参考中的此 function:
/**
* Create StreamClient
*/
export function connect(
apiKey: string,
apiSecret: string | null,
appId: string,
options?: object,
): stream.Client;
Any insight would be appreciated.任何见解将不胜感激。
This bug is fixed with the release of stream-chat v1.8.此错误已随着流聊天 v1.8 的发布而得到修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.