问题描述
build报错
问题出现的环境背景及自己尝试过哪些方法
Error processing file: static/css/app.9e87deb2898e7628dff15253fffcfa72.css
(node:8288) UnhandledPromiseRejectionWarning: Error: Cannot divide by "rem", number expected
at D:\work\project\app-yingtai\wx\static\css\app.9e87deb2898e7628dff15253fffcfa72.css:28472:3
at reduceDivisionExpression (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:196:42)
at reduceMathExpression (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:244:14)
at reduce (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:13:46)
at convertMathExpression (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:47:15)
at reduceMathExpression (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:236:10)
at reduce (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\reducer.js:13:46)
at D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\transform.js:34:43
at walk (D:\work\project\app-yingtai\wx\node_modules\_postcss-value-parser@3.3.1@postcss-value-parser\lib\walk.js:19:7)
at ValueParser.walk (D:\work\project\app-yingtai\wx\node_modules\_postcss-value-parser@3.3.1@postcss-value-parser\lib\index.js:18:3)
at transformValue (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\transform.js:24:50)
at _default (D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\lib\transform.js:59:100)
at D:\work\project\app-yingtai\wx\node_modules\_postcss-calc@7.0.1@postcss-calc\dist\index.js:25:51
at D:\work\project\app-yingtai\wx\node_modules\_postcss@7.0.18@postcss\lib\container.js:135:18
at Rule.each (D:\work\project\app-yingtai\wx\node_modules\_postcss@7.0.18@postcss\lib\container.js:101:16)
at Rule.walk (D:\work\project\app-yingtai\wx\node_modules\_postcss@7.0.18@postcss\lib\container.js:131:17)
at D:\work\project\app-yingtai\wx\node_modules\_postcss@7.0.18@postcss\lib\container.js:148:24
(node:8288) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8288) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
你期待的结果是什么?实际看到的错误信息又是什么?
怎么解决很着急啊啊啊啊啊
你用什么工具构建的? webpack吗?
把你的构建脚本粘贴出来。
错误信息说的是, 你的样式里面,使用rem的地方,应该是数字