Vue npm run test 错误 (node:16672) UnhandledPromiseRejectionWarning: CssSyntaxError:xxxx.Unknown word
记一次运行代码上传的测试服务器遇到的坑,昨天上传还好好的,今天上传就报以下错误,以为是忘记下什么插件了,简单粗暴的把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文件下的一串代码,抱着试试的态度,把代码屏蔽了

屏蔽之后,重新打包上传

成功^_^
Vue npm run test 错误 (node:16672) UnhandledPromiseRejectionWarning: CssSyntaxError:xxxx.Unknown word的更多相关文章
- VUE npm run dev 启动时,报了一大堆错误 Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 7.x
npm run dev 启动时,报了一大堆错误 Module build failed: Error: Missing binding E:\2017VocaSchool\vocationWeb\no ...
- vue npm run dev报错webpack-dev-server
在运行vue项目时报如下问题: E:\mobile_real\mobile-vue>npm run dev > mobile_real@1.0.0 dev E:\mobile_real\m ...
- npm run start失败&Node.js 查询指定端口运行情况及终止占用端口办法
缘由: node.js项目中运行npm run start命令脚本报错,No such file or directory 最开始以为是命令脚本找不到所谓的执行路径,但后面发现不是,是package. ...
- vue npm run dev 报错 semver\semver.js:312 throw new TypeError('Invalid Version: ' + version)
npm run dev运行报错信息如下图: 原因分析: 版本问题 解决办法: 在semver.js(node_modules/semver/semver.js)里做了一些改动,代码如下: // if ...
- vue npm run build 失败
之前删除过 node-moudel 文件夹,然后 npm install 重新安装,一切OK.打包的时候,报错,找不到caniuse什么的.再删除node-moudel,重新cnpm install ...
- Vue+Webpack配置css-loader时报错:Module build failed: Unknown word
使用Vue+Webpack搭建工程时,在webpack.config.js中的module的rules里针对各种文件配置加载工具.在针对css文件配置时遇到一个问题:打包构建时报错——Module b ...
- laravel npm run dev 错误 npm run dev error [npm ERR! code ELIFECYCLE]
出现此问题是node_modules出现错误,需要执行: 1 rm -rf node_modules 2 rm package-lock.json 3 npm cache clear --force ...
- VUE npm run build的项目出现跨域请求的问题npm run dev没有这个问题
报错信息 Access to XMLHttpRequest at 'http://platformapi-test.lih-elearning.cn/api/v1/login' from origin ...
- vue中npm run dev运行项目不能自动打开浏览器! 以及 webstorm跑vue项目jshint一直提示错误问题的解决方法!
vue中npm run dev运行项目不能自动打开浏览器!以及 webstorm跑vue项目jshint一直提示错误问题的解决方法! 1.上个项目结束就很久没有使用vue了,最近打算用vue搭建自己的 ...
- npm run dev运行Vue项目报错:Node Sass does not yet support your current environment
导入Vue项目后,#npm run dev 报错: error in ./src/pages/hello.vue Module build failed: Error: Node Sass does ...
随机推荐
- 一文详解RocketMQ的存储模型
摘要:RocketMQ 优异的性能表现,必然绕不开其优秀的存储模型. 本文分享自华为云社区<终于弄明白了 RocketMQ 的存储模型>,作者:勇哥java实战分享. RocketMQ 优 ...
- 《Effective C++》定制new和delete
Item49:了解new_handler的行为 当operator new抛出异常以反映出一个未获得满足的内存需求之前,它会先调用一个用户制定的错误处理函数,一个所谓的new-handler,为了制定 ...
- 大公司为什么禁止SpringBoot项目使用Tomcat?
本文已经收录到Github仓库,该仓库包含计算机基础.Java基础.多线程.JVM.数据库.Redis.Spring.Mybatis.SpringMVC.SpringBoot.分布式.微服务.设计模式 ...
- STL序列式容器使用注意、概念总结
引入 最近看了<STL源码剖析>的第 4 章和第 5 章,介绍了 C++ STL 中的序列式容器和关联式容器,本文将总结序列式容器的基础概念,不会详细它们的实现原理(想知道自个儿看书吧,我 ...
- Windows 映射网络驱动器及删除-此网格连接不存在
将共享目录,映射到本地磁盘,可以方便快速访问 添加 点击[此电脑]菜单栏中,选择[计算机]->[映射网格驱动器]-> 文件夹中输入 共享目录地址,如下图 删除 右击,网格映射盘,右击[断开 ...
- Grafana 系列文章(十一):Loki 中的标签如何使日志查询更快更方便
️URL: https://grafana.com/blog/2020/04/21/how-labels-in-loki-can-make-log-queries-faster-and-easier/ ...
- Selenium中的option用法实例
Selenium中的option用法实例 在上一篇文章Selenium中免登录的实现方法一option中我们用到了option,而option的用法是很多的,本文举几个例子 关于无头浏览器,也属于op ...
- ES字段类型
1 String ELasticsearch 5.X之后的字段类型不再支持string,由text和keyword取代,不做说明. 2 text和keyword 2.1 简介 ElasticSearc ...
- vue+elementUI 实现设置还款日字母弹窗组件
1.业务背景 还款业务,设置每月还款日,选每月几号扣款,不需要29.30.31,因为不是每个月都有这三天的 2.预期效果图 3.代码实现 3.1 初始化vue项目 地址:https://cn.vuej ...
- JSTL标签库C标签的使用注意事项
今天在写jsp中在c标签上踩了不少坑,在此记录一下. <c:if>标签单独使用,不与<c:otherwise>配套使用,搭配使用会报错. <c:otherwise> ...