- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
前置描述:
1.使用的是echart4.x
2.使用了echart为小程序定制的ec-canvas,在echart官网进行了精简定制。
问题概述:
本地预览,编译,都正常显示,但是在真机调试时,发生错误。
微信版本为:7.0.4,基础库版本:2.7.1,手机型号:iPhoneXR,运行版本:IOS12.2
具体的错误情况如下:
在iPhone8P,其他版本一样,运行版本:IOS11.4下,正常运行,安卓手机正常运行。
只有在iPhoneXR,IOS12.2时,报错,刚扫码进入首页,
控制台就报错:
Cannot assign to read only property 'constructor' of object '#<Object>' at h (echarts.js:1) at echarts.js:7 at Ev (echarts.js:1) at echarts.js:1 at require ([publib]:1) at [publib]:1 at ec-canvas.js:2 at require ([publib]:1) at ec-canvas.js:135 at ContextifyScript.Script.runInContext (vm.js:59) |
进入到使用echart的页面时,报错为:
jsEnginScriptError Component is not found in path "ec-canvas/ec-canvas" (using by "pages/chart/index/chart" );onAppRoute Error: Component is not found in path "ec-canvas/ec-canvas" (using by "pages/chart/index/chart" ) at m ([publib]:1:979153) at m ([publib]:1:979339) at [publib]:1:996714 at Object.t.addView ([publib]:1:997260) at Function.value ([publib]:1:1077292) at kt ([publib]:1:1091519) at [publib]:1:1093544 at It ([publib]:1:1093574) at Function.<anonymous> ([publib]:1:1098389) at i.<anonymous> ([publib]:1:1070398) |
关于这个问题,最新版的nightly版开发工具已解决,请下载使用:https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html
谢谢
感谢