简体   繁体   English

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

[英]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.

相关问题 Angular Social登录包'angularx-social-login'给出错误命名空间没有导出成员'eeFactoryDe​​claration' - Angular Social login package 'angularx-social-login' gives error Namespace has no exported member 'eeFactoryDeclaration' 没有导出成员Angular - Has no exported member Angular 我无法安装“ angular / cli”软件包。 npm返回错误:主机名\\ IP与证书替代名称不匹配 - i cannot install 'angular/cli' package. the npm returns an error:Hostname\IP doesnt match certificate altnames Angular 6错误…calendar.component没有导出的成员'CalendarComponent' - Angular 6 Error… calendar.component has no exported member 'CalendarComponent' Node.js:错误“导出的外部程序包键入文件” - Node.js: Error “Exported external package typings file” simplify-js包。 始终返回2个多边形点 - simplify-js package. Always return 2 points of polygon Npm 错误。 无法安装 package。 不断抛出错误 - Npm error. Unableto install package. Keeps throwing error cloud-angular没有导出成员provideCloud - cloud-angular has no exported member provideCloud 尝试运行聊天包时在节点js上获取错误 - getting error on node js while try to run a chat package 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:包子路径 './src/util/Constants.js' 不是由 \\"exports\\" 定义的 - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './src/util/Constants.js' is not defined by \"exports\"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM