Angular 编译错误与流聊天-js 包。没有导出的成员'Client'



我在尝试使用流聊天包的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'.

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

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

任何见解都将不胜感激。

流式聊天v1.8的发布修复了此错误。

最新更新