-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【H5】模式下Taro.createCanvasContext(this.canvasId, this) 报错 #3601
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
贴一下使用的代码吧 |
CC @Littly |
|
create = (config) => {
this.ctx = Taro.createCanvasContext(this.canvasId, this.$scope);
const height = getHeight(config);
}
|
请问下这个有解决吗,用Canvas总是会出现各种各样的问题,刚解决一个又出现跟你一样的问题 |
@Rahim-Chan 您好,请问这个问题解决了吗? |
@Rahim-Chan 现在是崭新的 |
目前H5调用createCanvasContext方法还是会报错,taro版本3.4.3 |
在H5下使用
Taro.createCanvasContext(this.canvasId, this)
时报错了。Cannot read property 'vnode' of undefined
系统信息
👽 Taro v1.3.4
Taro CLI 1.3.4 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.9.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered: