Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Electron】-【8.6】【运行时报错:TypeError: trtc.NodeRTCCloud is not a constructor】 #414

Open
sundaylover opened this issue May 20, 2021 · 3 comments

Comments

@sundaylover
Copy link

【当前现象】
开发中调用 new TrtcElectronEducation() 时报错 TypeError: trtc.NodeRTCCloud is not a constructor

QQ20210520-121034

【集成包】
"trtc-electron-education": "^1.2.0"

【机型】
Mac OS 11.3.1

@Tencent-Alice
Copy link

您好,关于您的问题,您的问题第三方的nodejs api,
EF44FE8A-B615-4DC5-A83E-4C9589BD873B
需要这样引用:
const TRTCCloud=window.require('trtc-electron-sdk')
技术问题 欢迎交流 q2562367495 注明来意

@sundaylover
Copy link
Author

我用的是Demo中提到的trtc-electron-education组件,没有直接引用trtc-electron-sdk

屏幕截图 2021-05-21 113113

使用这种方式引用也会报错:
const TrtcElectronEducation = window.require('trtc-electron-education')

屏幕截图 2021-05-21 114419

@Tencent-Alice
Copy link

您好,具体问题,欢迎交流方便交互
q2562367495 注明来意

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants