-
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
使用支付宝小程序基础库2.0构建小程序,Canvas显示不出来,不使用基础库2.0构建是正常的 #15767
Comments
支付宝小程序是必须启用2.0构建的,可以切换到mpaas小程序,可以切换是否启用基础库2.0构建,我们的小程序也是mpaas小程序 |
@Chen-jj @yuche @luckyadam 这个问题好长时间了,对业务产生影响,希望有人能看看 |
尝试将canvas的type="2d"属性删除,发现可以展示了 |
支付宝方面说type="2d" 是用新版本的Canvas,去掉的话是创建的旧版的 canvas,所以说这个问题还需要官方再关注下 |
This was referenced May 25, 2024
了解,感谢反馈问题~ |
This was referenced May 25, 2024
This was referenced May 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
支付宝小程序
复现仓库
https://github.com/BS3385/taro-alipay-canvas-demo.git
小程序基础库: 2.9.12
使用框架: React
复现步骤
1、代码拉下后先安装依赖,node版本18.18.0,然后执行yarn dev:alipay
2、在支付宝的小程序开发者工具中打开编译后的目录,页面中canvas不显示,关闭基础库2.0构建之后可以正常显示
期望结果
canvas正常显示
实际结果
canvas在基础库2.0构建时未显示
环境信息
The text was updated successfully, but these errors were encountered: