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

和原生组件混用的时候原生部分 watch 有时不生效 #10477

Open
07akioni opened this issue Oct 21, 2021 · 0 comments
Open

和原生组件混用的时候原生部分 watch 有时不生效 #10477

07akioni opened this issue Oct 21, 2021 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@07akioni
Copy link

相关平台

微信小程序

复现仓库

https://github.com/07akioni/taro-example
小程序基础库: 最新(无关)
使用框架: React

复现步骤

  1. 修改 src/native-components/hello/index.json,去掉 usingComponents
  2. npm run dev:tt(啥都行)
  3. 结束之后加上原先的 usingComponents,就是src/native-components/world/index.json

重新编译之后 dist 没有生成 world 组件的代码

期望结果

world 组件被编译并且被引入

实际结果

产物没有 world 组件

环境信息

👽 Taro v3.3.10


  Taro CLI 3.3.10 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.17.3 - ~/.nvm/versions/node/v14.17.3/bin/node
      Yarn: 1.22.10 - ~/.nvm/versions/node/v14.17.3/bin/yarn
      npm: 7.19.1 - ~/.nvm/versions/node/v14.17.3/bin/npm
    npmPackages:
      @tarojs/components: 3.3.10 => 3.3.10 
      @tarojs/mini-runner: 3.3.10 => 3.3.10 
      @tarojs/react: 3.3.10 => 3.3.10 
      @tarojs/runtime: 3.3.10 => 3.3.10 
      @tarojs/taro: 3.3.10 => 3.3.10 
      @tarojs/webpack-runner: 3.3.10 => 3.3.10 
      babel-preset-taro: 3.3.10 => 3.3.10 
      eslint-config-taro: 3.3.10 => 3.3.10 
      react: ^17.0.0 => 17.0.2 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Oct 21, 2021
@07akioni 07akioni changed the title 和原生组件混用的时候原生部分 watch 不完善 和原生组件混用的时候原生部分 watch 有时不生效 Oct 21, 2021
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

1 participant