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

taro打鸿蒙包,在deveco-studio中编译时出错 #15770

Closed
zouchao1 opened this issue May 24, 2024 · 1 comment
Closed

taro打鸿蒙包,在deveco-studio中编译时出错 #15770

zouchao1 opened this issue May 24, 2024 · 1 comment
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x

Comments

@zouchao1
Copy link

相关平台

鸿蒙

使用框架: React

复现步骤

使用taro脚手架生成项目,模版选择鸿蒙,taro能正常打包到鸿蒙里,鸿蒙编译出错:鸿蒙 3.1.0(API 9)

期望结果

鸿蒙开发工具能正常编译

实际结果

ERROR File:/DevEcoStudioProjects/MyApplication/entry/src/main/js/MainAbility/container/index.hml
The element name can not be same with the page "container" (ignore case).

环境信息


  Taro CLI 3.6.30 environment info:
    System:
      OS: macOS 12.6.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.21.3 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 9.6.3 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.30 => 3.6.30 
      @tarojs/components: 3.6.30 => 3.6.30 
      @tarojs/helper: 3.6.30 => 3.6.30 
      @tarojs/plugin-framework-react: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-alipay: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-h5: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-jd: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-qq: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-swan: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-tt: 3.6.30 => 3.6.30 
      @tarojs/plugin-platform-weapp: 3.6.30 => 3.6.30 
      @tarojs/react: 3.6.30 => 3.6.30 
      @tarojs/runtime: 3.6.30 => 3.6.30 
      @tarojs/shared: 3.6.30 => 3.6.30 
      @tarojs/taro: 3.6.30 => 3.6.30 
      @tarojs/taro-loader: 3.6.30 => 3.6.30 
      @tarojs/webpack5-runner: 3.6.30 => 3.6.30 
      babel-preset-taro: 3.6.30 => 3.6.30 
      eslint-config-taro: 3.6.30 => 3.6.30 
      react: ^18.0.0 => 18.3.1 
    npmGlobalPackages:
      typescript: 5.2.2

补充信息

File:/DevEcoStudioProjects/MyApplication/entry/src/main/js/MainAbility/container/index.hml
The element name can not be same with the page "container" (ignore case).
File:/DevEcoStudioProjects/MyApplication/entry/src/main/js/MainAbility/container/index.hml
The element name can not be same with the page "taro-button" (ignore case).

@xuanzebin
Copy link
Member

xuanzebin commented Jun 3, 2024

  1. 目前 taro 支持鸿蒙的最新版本是 4.0.0-beta.82,需要升级到此版本进行开发
  2. api 9 目前已经不支持了,需要升级到最新的 api 12 进行鸿蒙工程的创建,具体参考文档 https://docs.taro.zone/docs/next/harmony

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants