building for production...Error

2019-10-02  本文已影响0人  一号聪明

假如你vue项目打包遇到了此报错,毋庸置疑的肯定是css环节,出问题了。我项目中使用的是stylus预编译器,使用了花括号,少了个括号。注意!!!

building for production...Error processing file: static/css/app.8dea3c09b45c4f3bb5b1a322334faa5f.css
(node:12456) UnhandledPromiseRejectionWarning: CssSyntaxError: F:\Richsmiley\static\css\app.8dea3c09b45c4f3bb5b1a322334faa5f.css:10032:3: Unknown word
(node:12456) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pr
omise which was not handled with .catch(). (rejection id: 2)
(node:12456) [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.

错误示范

当时写的时候也没报红,邪门。

。。。改,代,码。。喽

上一篇下一篇

猜你喜欢

热点阅读