收藏
回答

canvasToTempFilePath 真机调试报错?

canvasToTempFilePath 在开发工具中正常,Android 真机调试报错,求解!!!!

https://developers.weixin.qq.com/s/8FoaeVmB7Vqw

微信版本 8.0.6, 基础库 2.17.0, 运行系统 30

U.createEvent is not a function

TypeError: U.createEvent is not a function

    at Q (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30288)

    at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30586)

    at e.exports (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:35748)

    at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30537)

    at y.<computed> (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33814)

    at O (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33543)

    at Function.eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33581)

    at <setTimeout callback function>

    at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:110325)

    at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:101470)

最后一次编辑于  2021-06-09
回答关注问题邀请回答
收藏

2 个回答

  • 大宇
    大宇
    2022-04-12

    同一个问题,开发工具中是正常的,真机测试和真机预览都报错"canvasToTempFilePath: fail canvas is empty"

    2022-04-12
    有用
    回复
  • Cjiang
    Cjiang
    2021-06-09

    你好,canva2d 不支持真机调试,用真机预览试试?

    2021-06-09
    有用
    回复
登录 后发表内容