新版sass编译报错,退回旧版没有问题
- 发布:2021-05-26 17:12
- 更新:2021-06-10 21:04
- 阅读:789
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10 1903
HBuilderX版本号: 3.1.16
操作步骤:
预期结果:
sass编译成功,正常运行或发行项目
sass编译成功,正常运行或发行项目
实际结果:
sass编译报错,不能运行或打包项目
sass编译报错,不能运行或打包项目
bug描述:
DEPRECATION WARNING on line 257 of stdin:
17:06:54.151 The operation #2c3049 times 0.8
is deprecated and will be an error in future versions.
17:06:54.151 Consider using Sass's color functions instead.
17:06:54.155 http://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions
17:06:56.972 Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
17:06:56.972 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
17:06:56.975 SassError: Invalid UTF-8 sequence
17:06:56.975 on line 1 of D:/giteeProject/wireless-assistant/components/foot-menu/foot-menu.scss
17:06:56.978 from line 148 of D:\giteeProject\wireless-assistant\components\foot-menu\foot-menu.vue
9***@qq.com (作者)
普通uniapp项目非cli
2021-05-27 20:29
9***@qq.com (作者)
最新版依然有这个问题,sass只要有中文注释就不能编译,旧版没有这个问题
2021-06-07 10:22