huaweicloud-sdk-browserjs-obs icon indicating copy to clipboard operation
huaweicloud-sdk-browserjs-obs copied to clipboard

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

Open tclxjiaxing-huang opened this issue 3 years ago • 1 comments

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

tclxjiaxing-huang avatar Jan 27 '22 02:01 tclxjiaxing-huang

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

noaccident avatar Oct 14 '22 06:10 noaccident