taro icon indicating copy to clipboard operation
taro copied to clipboard

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

Open divcss3 opened this issue 6 years ago • 1 comments

相关平台

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

divcss3 avatar Jul 09 '20 00:07 divcss3

image

divcss3 avatar Jul 09 '20 00:07 divcss3