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 ...
随机推荐
- JUC并发编程详解(通俗易懂)
一.JUC简介 在Java5.0提供了java.util.concurrent包,简称JUC,即Java并发编程工具包.JUC更好的支持高并发任务. 具体的有以下三个包: java.util.conc ...
- day02-Promise
Promise 1.Promise基本介绍 Promise是异步编程的一种解决方案,可以解决传统Ajax回调函数嵌套问题. 传统的Ajax异步调用在需要多个操作的时候,会导致多个回调函数嵌套,导致代码 ...
- [Leetcode]完全平方数
题目 代码 class Solution { public: int numSquares(int n) { vector<int> dp(n + 1, INT_MAX); dp[0] = ...
- win32com操作word 第三集:Range精讲(一)
本课程<win32com操作word API精讲&项目实战>,本公众号以文字分享为主,B站与视频号则发布视频分享,ID均为:一灯编程 本集开始,将会深入Document接口.打开或 ...
- 扒一扒Bean注入到Spring的那些姿势,你会几种?
大家好,我是三友~~ 这篇文章我准备来扒一扒Bean注入到Spring的那些姿势. 其实关于Bean注入Spring容器的方式网上也有很多相关文章,但是很多文章可能会存在以下常见的问题 注入方式总结的 ...
- 大佬们的博客 && 友链
博客 1.https://wiki.kimleo.net/ 查组合子查到的,活化石级别 2.https://tech.meituan.com/ 美团博客,查函数式查到的,我还看过一篇讲aop的非常经典 ...
- unity 实现自定义class深度拷贝 deep copy 深度复制 引用类型复制
气死我了,搜半天没有,全让序列化再反序列化,又不方便又不美观.结果自己试着一写就通,两行完事. 首先先安装Newtonsoft.Json 包,这个很常用也很简单,随便搜一下安上就行,早晚得学. 然后两 ...
- 模拟实现strlen的三种方法
一.strlen()的工作原理 二.模拟实现strlen的三种方法 计数器方法 指针-指针 递归的方法 三.库函数实现strlen的思路 四.库函数的strlen同上面模拟实现strlen的区别 一. ...
- C语言知识补充 --来自菜鸟教程的指针复习
1.system 打开其他应用 1.指针演练 C 指针. 正如您所知道的,每一个变量都有一个内存位置,每一个内存位置都定义了可使用 & 运算符访问的地址,它表示了在内存中的一个地址. #in ...
- aop中的名词解释
aop中的名词解释 aop spring Joinpoint(连接点) 目标对象中所有可以增强的方法叫做连接点 Pointcut(切入点) 目标对象中要增强的的方法 Advice(通知/增强) 增强的 ...