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

浏览器引入esdk-obs-browserjs-without-polyfill-3.21.8.min.js后,依然找不到ObsClient对象 #21

Open
tclxjiaxing-huang opened this issue Jan 27, 2022 · 1 comment

Comments

@tclxjiaxing-huang
Copy link

1.从github下载华为云obs最新代码
2.本地安装编译后,生成了dist文件夹
3.复制里面dist/@cloud/esdk-obs-browserjs-without-polyfill-3.21.8.min.js文件,引入到项目中
4.在项目中new ObsClient() 报错 Uncaught ReferenceError: ObsClient is not defined

@noaccident
Copy link
Collaborator

从问题描述初步看,应该是编译的问题。推荐使用npm安装使用,如果非要静态引入的话,可以引用该文件 esdk-obs-browserjs.3.22.3.min.js

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