1***@qq.com
1***@qq.com
  • 发布:2022-08-10 11:58
  • 更新:2022-08-11 10:12
  • 阅读:553

uniapp运行时报错,SassError: Error: EPIPE: broken pipe, write

分类:uni-app

Failed to compile.

./src/components/city-select/city-select.vue?vue&type=style&index=0&id=c758b27c&lang=scss&scoped=true& (./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-2!./node_modules/postcss-loader/src??ref--9-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--9-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader!./src/components/city-select/city-select.vue?vue&type=style&index=0&id=c758b27c&lang=scss&scoped=true&)
Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):
SassError: Error: EPIPE: broken pipe, write

2022-08-10 11:58 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

已解决,不推荐使用($number / 375)这种直接计算方法,在Sass 2.0.0.中将删除该写法,推荐使用 calc($number / 375)这种写法,修改后报错就没有了

该问题目前已经被锁定, 无法添加新回复