微信小程序
复现仓库https://github.com 小程序基础库: 最新的 使用框架: React
复现步骤无
期望结果正常的使用 Canvas
实际结果type=2d 的 query select 方式确实能在IDE的模拟环境可用,但是在真机却无法使用 用 Taro.createCanvasContext("abc"); 则什么都画不出来
环境信息❯ npx taro info
👽 Taro v3.0.9
Taro CLI 3.0.9 environment info:
System:
OS: macOS 10.15.6
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
Yarn: 1.22.5 - ~/.nvm/versions/node/v12.18.3/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
npmPackages:
@tarojs/components: 3.0.9 => 3.0.9
@tarojs/mini-runner: 3.0.9 => 3.0.9
@tarojs/react: 3.0.9 => 3.0.9
@tarojs/runtime: 3.0.9 => 3.0.9
@tarojs/taro: 3.0.9 => 3.0.9
@tarojs/webpack-runner: 3.0.9 => 3.0.9
babel-preset-taro: 3.0.9 => 3.0.9
eslint-config-taro: 3.0.9 => 3.0.9
react: ^16.10.0 => 16.13.1
taro-ui: ^2.3.4 => 2.3.4