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

2.2.10(H5)设置h5.postcss.cssModules.enable=true,导致taro默认样式丢失 #6979

Closed
divcss3 opened this issue Jul 9, 2020 · 1 comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x

Comments

@divcss3
Copy link

divcss3 commented Jul 9, 2020

相关平台

H5

复现仓库

https://github.com/divcss3/taro_2.2.10_bug
浏览器版本: chrome 83.0.4103.116(正式版本) (64 位)
使用框架: React

复现步骤

如:.taro-img .taro-text 的默认样式丢失

期望结果

开启cssModules.enable后能正常显示

实际结果

样式丢失

环境信息

Taro CLI 2.2.10 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.16.3 - /usr/local/bin/node
      npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 2.2.10 => 2.2.10
      @tarojs/components-qa: 2.2.10 => 2.2.10
      @tarojs/mini-runner: 2.2.10 => 2.2.10
      @tarojs/mobx: 2.2.10 => 2.2.10
      @tarojs/mobx-h5: 2.2.10 => 2.2.10
      @tarojs/plugin-sass: 2.2.10 => 2.2.10
      @tarojs/plugin-terser: 2.2.10 => 2.2.10
      @tarojs/router: 2.2.10 => 2.2.10
      @tarojs/taro: 2.2.10 => 2.2.10
      @tarojs/taro-alipay: 2.2.10 => 2.2.10
      @tarojs/taro-h5: 2.2.10 => 2.2.10
      @tarojs/taro-qq: 2.2.10 => 2.2.10
      @tarojs/taro-quickapp: 2.2.10 => 2.2.10
      @tarojs/taro-swan: 2.2.10 => 2.2.10
      @tarojs/taro-tt: 2.2.10 => 2.2.10
      @tarojs/taro-weapp: 2.2.10 => 2.2.10
      @tarojs/webpack-runner: 2.2.10 => 2.2.10
      eslint-config-taro: 2.2.10 => 2.2.10
      eslint-plugin-taro: 2.2.10 => 2.2.10
      nerv-devtools: ^1.5.5 => 1.5.7
      nervjs: ^1.5.5 => 1.5.7
      stylelint-config-taro-rn: 2.2.10 => 2.2.10
      stylelint-taro-rn: 2.2.10 => 2.2.10
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x labels Jul 9, 2020
@divcss3
Copy link
Author

divcss3 commented Jul 9, 2020

image

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-2 Version - 2.x
Projects
Archived in project
Development

No branches or pull requests

2 participants