Skip to content
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

Open
heweishui opened this issue Apr 30, 2024 · 0 comments
Open

canvasToTempFilePath接口返回tempFilePath值为undefined #15601

heweishui opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@heweishui
Copy link
Contributor

相关平台

H5、Harmony

复现仓库

https://github.com/heweishui/mini-program-example2.git
浏览器版本: Chrome 124.0.6367.62
使用框架: React

复现步骤

https://github.com/heweishui/mini-program-example2.git 仓库将代码拉取下来

  1. 执行pnpm install命令下载所有依赖,然后执行命令跑起项目

    pnpm run dev:h5
    

​ example跑起来之后,点击首页canvasToTempFilePath按钮,打开控制台查看打印的返回结果

​ harmony平台拉起的项目(pnpm run dev:harmony-hybrid)该api直接报错

期望结果

h5项目接口返回值中tempFilePath为文件地址;
harmony-hybrid项目接口返回值中tempFilePath为文件地址

实际结果

h5项目接口返回值中tempFilePath为undefined;
harmony-hybrid项目报错

环境信息

Taro CLI 3.6.28 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.17.0 - C:\Program Files\nodejs\node.EXE 
      npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD     
    npmPackages:
      @tarojs/cli: 3.6.28 => 3.6.28
      @tarojs/components: 3.6.28 => 3.6.28
      @tarojs/helper: 3.6.28 => 3.6.28
      @tarojs/plugin-framework-react: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-alipay: 3.6.28 => 3.6.28 
      @tarojs/plugin-platform-h5: 3.6.28 => 3.6.28     
      @tarojs/plugin-platform-jd: 3.6.28 => 3.6.28     
      @tarojs/plugin-platform-qq: 3.6.28 => 3.6.28     
      @tarojs/plugin-platform-swan: 3.6.28 => 3.6.28   
      @tarojs/plugin-platform-tt: 3.6.28 => 3.6.28
      @tarojs/plugin-platform-weapp: 3.6.28 => 3.6.28
      @tarojs/react: 3.6.28 => 3.6.28
      @tarojs/runtime: 3.6.28 => 3.6.28
      @tarojs/shared: 3.6.28 => 3.6.28
      @tarojs/taro: 3.6.28 => 3.6.28
      @tarojs/taro-loader: 3.6.28 => 3.6.28
      @tarojs/webpack5-runner: 3.6.28 => 3.6.28
      babel-preset-taro: 3.6.28 => 3.6.28
      eslint-config-taro: 3.6.28 => 3.6.28
      react: ^18.0.0 => 18.3.1

补充信息

hooks.call('getDOMNode', inst)方法返回值为undefined,获取不到节点

@taro-bot2 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
@ZEJIA-LIU ZEJIA-LIU self-assigned this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: API
Development

No branches or pull requests

2 participants