当前位置:网站首页>Error: Rule can only have one resource source (provided resource and test + include + exclude)
Error: Rule can only have one resource source (provided resource and test + include + exclude)
2022-08-10 13:04:00 【T_Y_F666】
问题
Error: Rule can only have one resource source (provided resource and test + include + exclude)
Error: Rule can only have one resource source (provided resource and test + include + exclude) in
"exclude": [
null
],
"use": [
{
"loader": "/Users/juanpablo/front-treatments/node_modules/cache-loader/dist/cjs.js",
"options": {
"cacheDirectory": "/Users/juanpablo/front-treatments/node_modules/.cache/babel-loader",
"cacheIdentifier": "81fef5a6"
},
"ident": "clonedRuleSet-38[0].rules[0].use[0]"
},
{
"loader": "/Users/juanpablo/front-treatments/node_modules/babel-loader/lib/index.js",
"options": "undefined",
"ident": "undefined"
}
]
} ````
A complete log of this run can be found in:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/Users/juanpablo/.nvm/versions/node/v12.19.0/bin/node',
1 verbose cli '/Users/juanpablo/.nvm/versions/node/v12.19.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'serve'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle [email protected]~preserve: [email protected]
6 info lifecycle [email protected]~serve: [email protected]
7 verbose lifecycle [email protected]0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~serve: PATH: /Users/juanpablo/.nvm/versions/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/juanpablo/front-treatments/node_modules/.bin:/Users/juanpablo/.nvm/versions/node/v12.19.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/juanpablo/.rvm/bin
9 verbose lifecycle [email protected]~serve: CWD: /Users/juanpablo/front-treatments
10 silly lifecycle [email protected]~serve: Args: [ '-c', 'vue-cli-service serve' ]
11 silly lifecycle [email protected]~serve: Returned: code: 1 signal: null
12 info lifecycle [email protected]~serve: Failed to exec serve script
13 verbose stack Error: [email protected] serve: `vue-cli-service serve`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/juanpablo/.nvm/versions/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (/Users/juanpablo/.nvm/versions/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/juanpablo/front-treatments
16 verbose Darwin 19.6.0
17 verbose argv "/Users/juanpablo/.nvm/versions/node/v12.19.0/bin/node" "/Users/juanpablo/.nvm/versions/node/v12.19.0/bin/npm" "run" "serve"
18 verbose node v12.19.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] serve: `vue-cli-service serve`
22 error Exit status 1
23 error Failed at the [email protected] serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
解决方案
控制台
npm uninstall webpack
npm install [email protected]^4.0.0 --save-dev
原因
该问题由于package.json中webpack版本冲突导致, 输入语句npm uninstall webpack删除当前webpack, 输入语句npm install [email protected]^4.0.0 --save-dev重装之前版本
参考内容
Error: Rule can only have one resource source (provided resource and test + include + exclude)
原创不易
转载请标明出处
如果对你有所帮助 别忘啦点赞支持哈
边栏推荐
- Requirements for the construction of Loudi stem cell preparation laboratory
- 广东10个项目入选工信部2021年物联网示范项目名单
- Codeforces Round #276 (Div. 1) D. Kindergarten
- 想通这点,治好 AI 打工人的精神内耗
- 一种能让大型数据聚类快2000倍的方法,真不戳
- 11 + chrome advanced debugging skills, learn to direct efficiency increases by 666%
- 汉字检测和关键词检测
- ABAP file operations involved in the Chinese character set of problems and solutions for trying to read
- R语言实战应用案例:论文篇(一)-特殊柱形图绘制
- Detailed explanation of es6-promise object
猜你喜欢

11 + chrome advanced debugging skills, learn to direct efficiency increases by 666%

2022-08-09:以下go语言代码输出什么?A:否,会 panic;B:是,能正确运行;C:不清楚,看投票结果。 package main import ( “fmt“ “syn

es6-promise对象详解

bgp dual plane experiment routing strategy to control traffic

作业8.9 构建TCP协议的服务器

Wirshark common operations and tcp three-way handshake process example analysis

Proprietary cloud ABC Stack, the real strength!

交换机的基础知识

Ethernet channel 以太信道

友邦人寿可观测体系设计与落地
随机推荐
Ethernet channel 以太信道
Have you guys encountered this problem?MySQL 2.2 and 2.3-SNAPSHOT are like this, it seems to be
NodeJs原理 - Stream(二)
SenseTime self-developed robotic arm, the first product is an AI chess-playing robot: Guo Jingjing is also invited as an endorsement
Jenkins修改端口号, jenkins容器修改默认端口号
C# WPF image is displayed without problems, but the solution does not display the image at runtime
MySQL面试题整理
ABAP 里文件操作涉及到中文字符集的问题和解决方案试读版
Inventory of Loudi Agricultural Products Inspection Laboratory Construction Guidelines
Import other custom namespaces in C#
想通这点,治好 AI 打工人的精神内耗
Drive IT Modernization with Low Code
[target detection] small script: extract training set images and labels and update the index
浙大、阿里提出DictBERT,字典描述知识增强的预训练语言模型
AtCoder初学者比赛077 D -小多
神经网络可视化有3D版本了,美到沦陷!(已开源)
LeetCode·每日一题·640.求解方程·模拟构造
交换机的基础知识
2022-08-09:以下go语言代码输出什么?A:否,会 panic;B:是,能正确运行;C:不清楚,看投票结果。 package main import ( “fmt“ “syn
C#中导入其它自定义的命名空间