项目实战-爬坑系列vue-cli3.x 快速原型开发 发生错误信息UnhandledPromiseRejectionWarning: Error: No loader specified(四)

在我们使用快速开发原型的时候可能因为一点点的不小心出现一些错误,而现在关于网上的问题解决方案也是非常少的,今天就报出一个我出现的错误,令我很是费解的问题,我一直找不到原因我先把错误报出来,可能错误信息有点长:

 INFO  Starting development server...
(node:8176) UnhandledPromiseRejectionWarning: Error: No loader specified
    at Function.normalizeUseItem (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:389:10)
    at Function.normalizeUse (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:360:19)
    at use.map (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:357:33)
    at Array.map ()
    at Function.normalizeUse (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:357:6)
    at Function.normalizeRule (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:288:26)
    at rules.map (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:110:20)
    at Array.map ()
    at Function.normalizeRules (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:109:17)
    at new RuleSet (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\RuleSet.js:104:24)
    at VueLoaderPlugin.apply (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@vue-loader\lib\plugin.js:35:23)
    at webpack (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\[email protected]@webpack\lib\webpack.js:47:13)
    at serve (C:\Users\admin\AppData\Roaming\npm\node_modules\@vue\cli-service-global\node_modules\_@[email protected]@@vue\cli-service\lib\commands\serve.js:135:22)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
    at startup (internal/bootstrap/node.js:283:19)
(node:8176) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8176) [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.

项目实战-爬坑系列vue-cli3.x 快速原型开发 发生错误信息UnhandledPromiseRejectionWarning: Error: No loader specified(四)_第1张图片
因为我看的文档是这个linlitOnSave是可以设置boolean 类型的,所以我设置了一个false,这就导致了一个困扰我很长时间的报错,你只要把lintOnSave改为error或者true,就可以正常的去运行了,具体为什么会出现这个原因的理由,我也不清楚,希望懂得人给个回答,大恩不言谢。

你可能感兴趣的:(VUE)