简体   繁体   中英

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.

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:

/**
 * 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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