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

taro1.2.8 组件文件改动后,h5没有热更新 #2005

Closed
phlill opened this issue Jan 22, 2019 · 6 comments
Closed

taro1.2.8 组件文件改动后,h5没有热更新 #2005

phlill opened this issue Jan 22, 2019 · 6 comments
Assignees

Comments

@phlill
Copy link

phlill commented Jan 22, 2019

问题描述

taro1.2.8版本,在改动组件的tsx或scss文件后,只监听到文件改动,但没有实现热更新
复现步骤
[复现问题的步骤]

  1. npm run dev:h5
  2. 改动组件的tsx或scss,保存
  3. 观察到引用改组件的h5页面没有热更新

期望行为
改动组件文件后,引用的页面会热更新

系统信息

Taro CLI 1.2.8 environment info:
System:
OS: macOS High Sierra 10.13.5
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 1.2.8 => 1.2.8
@tarojs/plugin-babel: 1.2.8 => 1.2.8
@tarojs/plugin-csso: 1.2.8 => 1.2.8
@tarojs/plugin-sass: 1.2.8 => 1.2.8
@tarojs/plugin-uglifyjs: 1.2.8 => 1.2.8
@tarojs/router: 1.2.8 => 1.2.8
@tarojs/taro: 1.2.8 => 1.2.8
@tarojs/taro-alipay: 1.2.8 => 1.2.8
@tarojs/taro-h5: 1.2.8 => 1.2.8
@tarojs/taro-swan: 1.2.8 => 1.2.8
@tarojs/taro-weapp: 1.2.8 => 1.2.8
@tarojs/webpack-runner: 1.2.8 => 1.2.8
eslint-config-taro: 1.2.8 => 1.2.8
eslint-plugin-taro: 1.2.8 => 1.2.8

  • 报错平台 [h5]

补充信息
1.新版本的问题?之前老版本正常
2.组件引用方式:import { IconBlock, MInput } from '../../components';是否是没有显式引用的关系

@taro-bot
Copy link

taro-bot bot commented Jan 22, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam luckyadam added the H5 label Jan 22, 2019
@taro-bot
Copy link

taro-bot bot commented Jan 22, 2019

CC @Littly

@Littly
Copy link
Contributor

Littly commented Feb 27, 2019

更新到最新版还存在这个问题吗?如果存在,需要一个可以复现这个情况的仓库

@taro-bot
Copy link

taro-bot bot commented Mar 6, 2019

Hello~

您的问题所提供的信息不足,我们无法定位到具体的问题。如果有空的话还请拔冗提供更具体的信息,否则这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@Mohaiyo
Copy link

Mohaiyo commented Mar 11, 2019

同样遇到这个问题,在h5开发环境下面。改变组件内的样式或者脚本都不会热更新,只能检测到文件改动,但是没有重新编译。只有直接在页面上更改才会触发重新编译。详细信息可见下图
3f9a04e2-cea2-42bc-8cf7-03b89e8d124f

@taro-bot taro-bot bot removed the to be closed label Mar 20, 2019
@taro-bot taro-bot bot closed this as completed Mar 20, 2019
@giantss
Copy link

giantss commented Dec 29, 2021

同上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants