pili-engineering / QNRTC-Web

QNRTCWeb 是七牛云推出的一款适用于 Web 平台的实时音视频 SDK,提供了包括音视频通话、静音、发布、订阅多种功能,提供灵活的接口,支持高度定制以及二次开发。
https://demo-rtc.qnsdk.com/
Apache License 2.0
131 stars 127 forks source link

在ts文件import pili-rtc-web时,提示 “wolfy87-eventemitter/EventEmitter“ has no default export. #59

Closed xianjun-li closed 2 years ago

xianjun-li commented 5 years ago

环境 : typescript version: 3.6.3 提示如下:

node_modules/pili-rtc-web/build/core.d.ts(2,8): error TS1192: Module '"/Users/xxx/development/upfm/upfm-websocket/node_modules/wolfy87-eventemitter/EventEmitter"' has no default export.
node_modules/pili-rtc-web/build/device.d.ts(1,8): error TS1192: Module '"/Users/xxx/development/upfm/upfm-websocket/node_modules/wolfy87-eventemitter/EventEmitter"' has no default export.
unknownYuan commented 3 years ago

最后你怎么解决的,我也碰到了这个问题

unknownYuan commented 3 years ago

环境 : typescript version: 3.6.3 提示如下:

node_modules/pili-rtc-web/build/core.d.ts(2,8): error TS1192: Module '"/Users/xxx/development/upfm/upfm-websocket/node_modules/wolfy87-eventemitter/EventEmitter"' has no default export.
node_modules/pili-rtc-web/build/device.d.ts(1,8): error TS1192: Module '"/Users/xxx/development/upfm/upfm-websocket/node_modules/wolfy87-eventemitter/EventEmitter"' has no default export.

我也碰到这个问题了,怎么解决