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

sass 警告 #3172

Closed
ice909 opened this issue Aug 16, 2024 · 0 comments
Closed

sass 警告 #3172

ice909 opened this issue Aug 16, 2024 · 0 comments

Comments

@ice909
Copy link
Contributor

ice909 commented Aug 16, 2024

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.11

平台

h5, weapp

重现链接

https://github.com/linuxdeepin/bbs-mobile-web

重现步骤

项目pnpm dev:weapp运行的时候报,css警告

WARNING in ./node_modules/.pnpm/@[email protected][email protected]_@[email protected][email protected]_vu_lsltq24wj4umtedk5clh2mavla/node_modules/@nutui/nutui-taro/dist/packages/tabs/index.scss (./node_modules/.pnpm/[email protected][email protected]_@[email protected]_/node_modules/css-loader/dist/cjs.js??clonedRuleSet-4.use[0]!./node_modules/.pnpm/[email protected][email protected][email protected][email protected]_@[email protected]_/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-5.use[0]!./node_modules/.pnpm/[email protected]/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected]_/node_modules/sass-loader/dist/cjs.js??clonedRuleSet-7.use[1]!./node_modules/.pnpm/@[email protected][email protected]_@[email protected][email protected]_vu_lsltq24wj4umtedk5clh2mavla/node_modules/@nutui/nutui-taro/dist/packages/tabs/index.scss)
Module Warning (from ./node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected]_/node_modules/sass-loader/dist/cjs.js):
Deprecation Warning on line 51, column 8 of file:///home/ice/workspace/bbs-mobile-web/node_modules/.pnpm/@[email protected][email protected]_@[email protected][email protected]_vu_lsltq24wj4umtedk5clh2mavla/node_modules/@nutui/nutui-taro/dist/packages/tabs/index.scss:51:8:
Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

51 |         text-align: center;


node_modules/.pnpm/@[email protected][email protected]_@[email protected][email protected]_vu_lsltq24wj4umtedk5clh2mavla/node_modules/@nutui/nutui-taro/dist/packages/tabs/index.scss 52:9  root stylesheet

期望的结果是什么?

不会报这个警告

实际的结果是什么?

会警告

环境信息

👽 Taro v4.0.4


  Taro CLI 4.0.4 environment info:
    System:
      OS: Linux 6.6 Deepin 23 23
      Shell: 5.9 - /usr/bin/zsh
    Binaries:
      Node: 20.14.0 - ~/.config/nvm/versions/node/v20.14.0/bin/node
      npm: 10.7.0 - ~/.config/nvm/versions/node/v20.14.0/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.4 => 4.0.4 
      @tarojs/components: 4.0.4 => 4.0.4 
      @tarojs/helper: 4.0.4 => 4.0.4 
      @tarojs/plugin-framework-vue3: 4.0.4 => 4.0.4 
      @tarojs/plugin-html: 4.0.4 => 4.0.4 
      @tarojs/plugin-http: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-h5: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-jd: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-qq: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-swan: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-tt: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4 
      @tarojs/runtime: 4.0.4 => 4.0.4 
      @tarojs/shared: 4.0.4 => 4.0.4 
      @tarojs/taro: 4.0.4 => 4.0.4 
      @tarojs/taro-loader: 4.0.4 => 4.0.4 
      @tarojs/webpack5-runner: 4.0.4 => 4.0.4 
      babel-preset-taro: 4.0.4 => 4.0.4 
      eslint-config-taro: 4.0.4 => 4.0.4 


其他补充信息

vue: 3.4.35
webpack: 5.91.0
node: 20.14.0

@ice909 ice909 changed the title Taro 编译警告 sass 警告 Aug 16, 2024
ice909 added a commit to ice909/nutui that referenced this issue Aug 16, 2024
修复sass语法警告
Issue: jdf2e#3172
ice909 added a commit to ice909/nutui that referenced this issue Aug 16, 2024
修复sass语法警告
Issue: jdf2e#3172
@ice909 ice909 mentioned this issue Aug 16, 2024
16 tasks
Alex-huxiyang pushed a commit that referenced this issue Aug 16, 2024
修复sass语法警告
Issue: #3172
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

2 participants