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

3.0.9 本地 link使用 ui库,小程序baseLevel配置失效, text文本在小程序中不能正常渲染 #7547

Closed
wkh2 opened this issue Sep 7, 2020 · 2 comments
Assignees
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@wkh2
Copy link

wkh2 commented Sep 7, 2020

相关平台

微信小程序

复现仓库

https://git.jd.com/apollo-fe/apl-taro-example.git
小程序基础库: 2.3.1
使用框架: React

复现步骤

git clone https://git.jd.com/apollo-fe/apl-taro-example.git
npm i
npm run dev:weapp

期望结果

Text 元素:满5件,总价打8折�
正常渲染满5件,总价打8折

实际结果

text没有正常渲染

环境信息

👽 Taro v3.0.9


  Taro CLI 3.0.9 environment info:
    System:
      OS: macOS High Sierra 10.13.6
      Shell: 5.7 - /usr/local/bin/zsh
    Binaries:
      Node: 10.15.2 - ~/.nvm/versions/node/v10.15.2/bin/node
      Yarn: 1.19.1 - ~/.yarn/bin/yarn
      npm: 6.14.4 - ~/.nvm/versions/node/v10.15.2/bin/npm
    npmPackages:
      @tarojs/cli: ^3.0.9 => 3.0.9 
      @tarojs/components: 3.0.9 => 3.0.9 
      @tarojs/mini-runner: 3.0.9 => 3.0.9 
      @tarojs/react: 3.0.9 => 3.0.9 
      @tarojs/runtime: 3.0.9 => 3.0.9 
      @tarojs/taro: 3.0.9 => 3.0.9 
      @tarojs/webpack-runner: 3.0.9 => 3.0.9 
      babel-preset-taro: 3.0.9 => 3.0.9 
      eslint-config-taro: 3.0.9 => 3.0.9 
      react: ^16.10.0 => 16.13.1 
    npmGlobalPackages:
      typescript: 3.7.2


补充信息

  • 升级3.0.9版本之前可以
  • 已经设置 baseLevel
const config = {
  mini:{
    baseLevel: 500
  }
}
  • 未生效,并且Text外层已有View包裹

注意

  • 单独启动ui库服务,baseLevel 设置生效
  • rollup打包之后,本地库link 使用时,baseLevel 不生效。
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 7, 2020
@wkh2
Copy link
Author

wkh2 commented Sep 7, 2020

241599475044_ pic
效果如图

@Chen-jj Chen-jj added this to the 3.0.10 milestone Sep 8, 2020
@Chen-jj Chen-jj self-assigned this Sep 8, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.10, 3.0.11 Sep 10, 2020
@ZakaryCode ZakaryCode modified the milestones: 3.0.11, 3.0.12 Sep 18, 2020
@ZakaryCode
Copy link
Contributor

该问题由于使用第三方 npm 源导致,第三方源同步错误导致依赖错误,手动 sync 源后可以修复该问题。

@Chen-jj Chen-jj removed this from the 3.0.15 milestone Oct 13, 2020
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

3 participants