您好,在运行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
请问这个问题应该如何解决?
您好,在运行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 请问这个问题应该如何解决?