繁体   English   中英

Angular 使用 stream-chat-js package 编译错误。 没有导出成员“客户”

[英]Angular Compile error with stream-chat-js package. No exported member 'Client'

尝试使用 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'.

此错误是指上述文件参考中的此 function:

/**
 * Create StreamClient
 */
export function connect(
  apiKey: string,
  apiSecret: string | null,
  appId: string,
  options?: object,
): stream.Client;

任何见解将不胜感激。

此错误已随着流聊天 v1.8 的发布而得到修复。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM