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
canvasToTempFilePath接口返回tempFilePath值为undefined #15601
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Apr 30, 2024
This was referenced May 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5、Harmony
复现仓库
https://github.com/heweishui/mini-program-example2.git
浏览器版本: Chrome 124.0.6367.62
使用框架: React
复现步骤
在https://github.com/heweishui/mini-program-example2.git 仓库将代码拉取下来
执行pnpm install命令下载所有依赖,然后执行命令跑起项目
example跑起来之后,点击首页canvasToTempFilePath按钮,打开控制台查看打印的返回结果
harmony平台拉起的项目(pnpm run dev:harmony-hybrid)该api直接报错
期望结果
h5项目接口返回值中tempFilePath为文件地址;
harmony-hybrid项目接口返回值中tempFilePath为文件地址
实际结果
h5项目接口返回值中tempFilePath为undefined;
harmony-hybrid项目报错
环境信息
补充信息
hooks.call('getDOMNode', inst)方法返回值为undefined,获取不到节点
The text was updated successfully, but these errors were encountered: