taro-plugin-canvas icon indicating copy to clipboard operation
taro-plugin-canvas copied to clipboard

Converting circular structure to JSON

Open wf-123456 opened this issue 4 years ago • 3 comments

在使用时报错 TypeError: Converting circular structure to JSON --> starting at object with constructor 'qe' | property '$component' -> object with constructor 'CanvasDrawer' --- property '$scope' closes the circle at JSON.stringify () at Object.sync (VM4953 asdebug.js:1) at Object.u [as beforeinvoke] (VM4953 asdebug.js:1) at Object.value [as createCanvasContext] (appservice?t=1599124990805:1) at Object.taro$$1. [as createCanvasContext] (vendors.js:4318) at CanvasDrawer._this.create (index.js? [sm]:147) at index.js? [sm]:135

追踪到了taro-plugin-canvas/dist/weapp/component/taro-plugin-canvas/index.jsx第84行,在this.ctx = Taro.createCanvasContext(this.canvasId, this.$scope) 这句话的第二个参数有问题,不知道对不对,不知道有没有大佬遇到这个问题,烦请指教

wf-123456 avatar Sep 03 '20 09:09 wf-123456

同问

susdevlop avatar Sep 24 '20 09:09 susdevlop

我发现painter这个库同样又这个问题

susdevlop avatar Sep 25 '20 02:09 susdevlop

我发现painter这个库同样又这个问题

提供一下配置文件,晚点看下

chuyun avatar Sep 25 '20 02:09 chuyun