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

4.0.3初始化一个鸿蒙项目,修改代码不实时刷新,导致编译后生成的代码还是旧的,必须重新启动dev:harmony才可以(只有4.0.0-beta.25表现正常) #16272

Open
fanlvwen opened this issue Aug 8, 2024 · 1 comment
Labels
F-react Framework - React T-harmony Target - 编译到 Harmony V-4 Version - 4.x

Comments

@fanlvwen
Copy link

fanlvwen commented Aug 8, 2024

相关平台

鸿蒙

复现仓库

https://github.com/fanlvwen/harmony-test.git

使用框架: React

复现步骤

打开项目,yarn之后直接运行yarn dev:harmony即可

期望结果

改动代码后,自动编译

实际结果

只有4.0.0-beta.25会自动编译,4.0.3以及4.0.4皆不自动编译

环境信息

Taro CLI 4.0.0-beta.117 environment info:
    System:
      OS: Windows 10 10.0.17763
    Binaries:
      Node: 18.20.4 - D:\nodejs\node.EXE
      Yarn: 1.22.22 - D:\nodejs\yarn.CMD
      npm: 10.7.0 - D:\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.3 => 4.0.3
      @tarojs/components: 4.0.3 => 4.0.3
      @tarojs/helper: 4.0.3 => 4.0.3
      @tarojs/plugin-framework-react: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-alipay: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-h5: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-harmony-ets: ^4.0.4 => 4.0.4
      @tarojs/plugin-platform-harmony-hybrid: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-jd: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-qq: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-swan: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-tt: 4.0.3 => 4.0.3
      @tarojs/plugin-platform-weapp: 4.0.3 => 4.0.3
      @tarojs/react: 4.0.3 => 4.0.3
      @tarojs/runtime: 4.0.3 => 4.0.3
      @tarojs/shared: 4.0.3 => 4.0.3
      @tarojs/taro: 4.0.3 => 4.0.3
      @tarojs/vite-runner: 4.0.3 => 4.0.3
      babel-preset-taro: 4.0.3 => 4.0.3
      eslint-config-taro: 4.0.3 => 4.0.3
      react: ^18.0.0 => 18.3.1

异常复现截图:
image
正常复现截图:
image

@taro-bot2 taro-bot2 bot added F-react Framework - React T-harmony Target - 编译到 Harmony V-3 Version - 3.x labels Aug 8, 2024
@fanlvwen
Copy link
Author

fanlvwen commented Aug 8, 2024

但是beta.25环境下,编译之后代码是有问题的,导致鸿蒙ide也无法运行
image

@TheKonka TheKonka added V-4 Version - 4.x and removed V-3 Version - 3.x labels Aug 9, 2024
This was referenced Aug 10, 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-harmony Target - 编译到 Harmony V-4 Version - 4.x
Projects
None yet
Development

No branches or pull requests

2 participants