Gcanvas-For-Apache-weex icon indicating copy to clipboard operation
Gcanvas-For-Apache-weex copied to clipboard

canvasModule.disable is not a function

Open weiliang-Zhang opened this issue 7 years ago • 2 comments

您好,在运行weex-chart的demo时,刚开始报错:weex_require is not defined, 后将项目中node_modules\weex-gcanvas下的gutil.js和plugins\weex-gcanvas\js下的gutil.js文件中: canvasModule = (typeof weex!=='undefined'&&weex.requireModule) ? ( weex.requireModule('gcanvas') ) : (weex_require('@weex-module/gcanvas') ) 写作注释中 weex_define('@weex-temp/x', function (weex_require) { canvasModule = weex_require('@weex-module/gcanvas'); }); 后解决该错误,同时产生新的错误: Uncaught TypeError: canvasModule.disable is not a function gutil.js:70 请问这个问题应该如何解决?

weiliang-Zhang avatar Mar 03 '17 10:03 weiliang-Zhang

hi 你的log显示似乎是module没有注册成功,所以没有找到module中暴露出来的native方法“ disable”。 现在gcanvas插件又经过多次升级了, 你试试使用最新版的weexpack和当前最新版打一个demo出来,看还会出这个问题吗?

lycool avatar Mar 17 '17 02:03 lycool

@Lily233 你的问题解决了吗?

501956430 avatar Jul 05 '17 03:07 501956430