簡體   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