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 3.6.32版本在开发过程中不支持热更新 #16210

Open
MarkLogin opened this issue Jul 30, 2024 · 3 comments
Open

Taro 3.6.32版本在开发过程中不支持热更新 #16210

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

Comments

@MarkLogin
Copy link

相关平台

H5

浏览器版本: 126.0.6478.127: Chrome
使用框架: React

复现步骤

正常使用Webpack5运行一个开发程序,代码更新修改保存后,网页没有实时热更新,需要手动刷新,求解决方案;

或者是Taro下如何自定义Webpack配置,网上未找到解决方案;

期望结果

Taro3.6.32 使用Webpack5 可以热更新

实际结果

[HMR] Checking for updates on the s
log.js:41 Ignored an update to unaccepted module
log.js:41 [HMR] The following modules couldn't be hot updated: (They would need a full reload!)
[HMR] Nothing hot updated.

环境信息

  Taro CLI 3.6.31 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 16.20.2 - C:\Program Files\nodejs\node.EXE 
      Yarn: 1.22.22 - D:\nodejs\npm_path\yarn.CMD      
      npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD    
    npmPackages:
      @tarojs/cli: 3.6.32 => 3.6.32 
      @tarojs/components: 3.6.32 => 3.6.32 
      @tarojs/plugin-framework-react: 3.6.32 => 3.6.32 
      @tarojs/plugin-platform-h5: ^3.6.32 => 3.6.34    
      @tarojs/react: 3.6.32 => 3.6.32 
      @tarojs/runtime: 3.6.32 => 3.6.32 
      @tarojs/taro: 3.6.32 => 3.6.32 
      @tarojs/webpack5-runner: 3.6.32 => 3.6.32
      babel-preset-taro: 3.6.32 => 3.6.32
      eslint-config-taro: 3.6.32 => 3.6.32
      react: ^17.0.0 => 17.0.2
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 30, 2024
@Rambos
Copy link

Rambos commented Jul 31, 2024

似乎有这个问题,很坑

@17
Copy link

17 commented Aug 1, 2024

#15751 试试这个

@MarkLogin
Copy link
Author

#15751 试试这个

我运行的是H5环境,参照微信的这个配置不好使。

This was referenced Aug 3, 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: Padding
Development

No branches or pull requests

3 participants