Vue npm run test 错误 (node:16672) UnhandledPromiseRejectionWarning: CssSyntaxError:xxxx.Unknown word
2024-10-20 13:44:24
记一次运行代码上传的测试服务器遇到的坑,昨天上传还好好的,今天上传就报以下错误,以为是忘记下什么插件了,简单粗暴的把node_modules下载重装了,结果还是不行,看看什么情况吧~~~
npm run test 运行代码后的错误提示
building for test...{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
\ building for test...Error processing file: static/css/app.7937e086d538f786d352bdfc466256831638935651588.css
(node:12340) UnhandledPromiseRejectionWarning: CssSyntaxError: E:\website_syky999\PC_CollectInfoSystem\static\css\app.7937e08.css:1341:16: Unknown word
at Input.error (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\pos
at Parser.unknownWord (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modu
at Parser.decl (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\pos
at Parser.other (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\po
at Parser.parse (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\po
at parse (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\postcss\l
at new LazyResult (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modules\
at Processor.<anonymous> (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_m)
at Processor.process (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\node_modul
at Function.creator.process (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\nod3)
at OptimizeCssAssetsPlugin.processCss (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-
at Object.processor (E:\website_syky999\PC_CollectInfoSystem\node_modules\optimize-css-assets-webpack-plugin\index.js:29
at E:\website_syky999\PC_CollectInfoSystem\node_modules\last-call-webpack-plugin\index.js:139:8
at arrayEach (E:\website_syky999\PC_CollectInfoSystem\node_modules\lodash\_arrayEach.js:15:9)
at forEach (E:\website_syky999\PC_CollectInfoSystem\node_modules\lodash\forEach.js:38:10)
at LastCallWebpackPlugin.process (E:\website_syky999\PC_CollectInfoSystem\node_modules\last-call-webpack-plugin\index.js
(node:12340) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside lock, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:12340) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections th
Node.js process with a non-zero exit code.
说是没有找到文件,static文件夹下哪来的文件,真的很是欲哭无泪
然后问百度,群友,终于找到了方法,要屏蔽webpack.test.conf.js文件下的一串代码,抱着试试的态度,把代码屏蔽了
屏蔽之后,重新打包上传
成功^_^
最新文章
- ABP源码分析三十三:ABP.Web
- map转json
- hibernate快速入门
- oracle 金额格式化
- leetcode_401_Binary Watch_回溯法_java实现
- yum-config-manager YUM安装遭遇: [Errno 256] No more mirrors to try CentOS yum之$releasever和$basearch
- 理论与实践中的 C# 内存模型,第 2 部分
- [上传下载] C#FileUp文件上传类 (转载)
- memcache的使用
- Python学习札记-eval函数
- 六.ansible批量管理服务
- mongoDB-Explain
- Confluence 6 反向跟踪
- 编写自定义Yeoman生成器简述
- STL之Queue容器
- [ML学习笔记] 回归分析(Regression Analysis)
- 未能使用“Csc”任务的输入参数初始化该任务
- python计算结果显示小数
- 2017-2018-2 20179205《网络攻防技术与实践》第十一周作业 SQL注入攻击与实践
- Mysql中的char与varchar length()与char_length()