我也遇到这个问题了,开发工具能显示,但是预览的时候 除了图片部分 其他的能显示,真机调试的时候直接报错不能显示
canvas 2d android真机property 'createView' undefinedVM21:2 (in promise) MiniProgramError Cannot read property 'createView' of undefined TypeError: Cannot read property 'createView' of undefined at t.value (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:2237101) at t.value (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1868186) at A (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1868352) at t.value (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:1868463) at eval (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:2566063) at new Promise (<anonymous>) at cc (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:2566025) at eval (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:2567487) at Array.forEach (<anonymous>) at n (eval at n.call.document (http://127.0.0.1:40184/remote-debug/runtime.js?devtools_ignore=true:1:11339), <anonymous>:2:2567465) errorReport @ VM21:2 runtime.js?devtools_ignore=true:1 [Violation] 'message' handler took 156ms
2021-07-24