You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot set property '0' of undefined
at Object.qrToImageData (/node_modules/_@chenfengyuan_vue-qrcode@1.0.0@@chenfengyuan/vue-qrcode/dist/vue-qrcode.common.js:2679:25)
TypeError: Cannot set property '0' of undefined
at Object.qrToImageData (/node_modules/_@chenfengyuan_vue-qrcode@1.0.0@@chenfengyuan/vue-qrcode/dist/vue-qrcode.common.js:2679:25)
在使用Jest做单元测试时,采用了jest-canvas-mock来模拟canvas,结果在vue-qrcode.common.js的2679行代码报错,打印出来的imgData为undefined,所以代码报错。
The text was updated successfully, but these errors were encountered: