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

taro3.0.8 微信小程序启用代码热重载不生效 #7493

Closed
ll929 opened this issue Sep 1, 2020 · 4 comments
Closed

taro3.0.8 微信小程序启用代码热重载不生效 #7493

ll929 opened this issue Sep 1, 2020 · 4 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ll929
Copy link

ll929 commented Sep 1, 2020

相关平台

微信小程序

小程序基础库: 2.12.2
使用框架: React

复现步骤

微信开发者工具升级到1.03.2008270,在右上角详情-本地设置 开启【启用代码热重载】。本地修改代码,界面无变化。

期望结果

修改代码后页面可以不刷新直接更新修改的内容

实际结果

修改代码后页面无变化

环境信息

Taro CLI 3.0.8 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.16.3 - ~/.nvm/versions/node/v12.16.3/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.6 - ~/.nvm/versions/node/v12.16.3/bin/npm
    npmPackages:
      @tarojs/components: 3.0.8 => 3.0.8 
      @tarojs/mini-runner: 3.0.8 => 3.0.8 
      @tarojs/react: 3.0.8 => 3.0.8 
      @tarojs/runtime: 3.0.8 => 3.0.8 
      @tarojs/taro: 3.0.8 => 3.0.8 
      @tarojs/webpack-runner: 3.0.8 => 3.0.8 
      babel-preset-taro: 3.0.8 => 3.0.8 
      eslint-config-taro: 3.0.8 => 3.0.8 
      react: ^16.10.0 => 16.13.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 1, 2020
@ruiruiStudy
Copy link

说是@taro版本,要和依赖的npm包版本一致,不知是不是,反正最新的3.0.8版本一大堆问题,比如无法用this.$router.params获取页面路由参数等,所以不要用最新版吧

@jenerse
Copy link

jenerse commented Sep 8, 2020

@kuailedechengxuyuan 获取参数改方式了,详情查看一下文档就清楚了

@ll929 ll929 closed this as completed Nov 30, 2020
@nnmer
Copy link

nnmer commented Dec 26, 2020

@ll929 你的热重载现在可以了吗?
我开通【启用代码热重载】后改代码的时候页面会更新但是变成空白的

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 13, 2021

duplicate #10722

3.3.17 开始兼容,需要额外配置,详情请看 #10722 中的评论

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

No branches or pull requests

5 participants