记一次运行代码上传的测试服务器遇到的坑,昨天上传还好好的,今天上传就报以下错误,以为是忘记下什么插件了,简单粗暴的把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文件下的一串代码,抱着试试的态度,把代码屏蔽了

屏蔽之后,重新打包上传

成功^_^

最新文章

  1. ABP源码分析三十三:ABP.Web
  2. map转json
  3. hibernate快速入门
  4. oracle 金额格式化
  5. leetcode_401_Binary Watch_回溯法_java实现
  6. yum-config-manager YUM安装遭遇: [Errno 256] No more mirrors to try CentOS yum之$releasever和$basearch
  7. 理论与实践中的 C# 内存模型,第 2 部分
  8. [上传下载] C#FileUp文件上传类 (转载)
  9. memcache的使用
  10. Python学习札记-eval函数
  11. 六.ansible批量管理服务
  12. mongoDB-Explain
  13. Confluence 6 反向跟踪
  14. 编写自定义Yeoman生成器简述
  15. STL之Queue容器
  16. [ML学习笔记] 回归分析(Regression Analysis)
  17. 未能使用“Csc”任务的输入参数初始化该任务
  18. python计算结果显示小数
  19. 2017-2018-2 20179205《网络攻防技术与实践》第十一周作业 SQL注入攻击与实践
  20. Mysql中的char与varchar length()与char_length()

热门文章

  1. 数位排序【第十三届蓝桥杯省赛C++C组】
  2. Gvim基础操作(正则表达式)-02
  3. 数据预处理时为什么要使用OneHot编码?
  4. (20)go-micro微服务Elasticsearch使用
  5. Linux基础介绍
  6. 异常的产生过程解析-throw关键字
  7. drf入门规范、序列化器组件、视图组件、请求与响应
  8. File、FileReader、Base64、Blob基本使用以及Buffer、ArrayBuffer之间的转换
  9. 【LeetCode字符串#06】KMP巩固练习:重复子串
  10. python_变量类型