반응형
vue js dev server 시작 시 .plugins [ 0 ]는 2 태플 또는 3 태플만 제공할 수 있습니다.
Vue CLI 버전 3을 사용하여 Docker 컨테이너 내에서 Vue 애플리케이션을 실행하고 있습니다.개발 서버를 시작하려면 다음을 수행합니다.
https://cli.vuejs.org/guide/cli-service.html
이로 인해 다음 오류가 발생합니다.
ERROR Failed to compile with 1 errors 17:05:14
error in ./app/main.js
Module build failed (from ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js):
Error: .plugins[0] may only be a two-tuple or three-tuple
at assertPluginItem (/home/src/node_modules/@babel/core/lib/config/validation/option-assertions.js:235:13)
at arr.forEach (/home/src/node_modules/@babel/core/lib/config/validation/option-assertions.js:222:30)
at Array.forEach (<anonymous>)
at assertPluginList (/home/src/node_modules/@babel/core/lib/config/validation/option-assertions.js:222:9)
at Object.keys.forEach.key (/home/src/node_modules/@babel/core/lib/config/validation/options.js:107:5)
at Array.forEach (<anonymous>)
at validateNested (/home/src/node_modules/@babel/core/lib/config/validation/options.js:83:21)
at validate (/home/src/node_modules/@babel/core/lib/config/validation/options.js:74:10)
at file (/home/src/node_modules/@babel/core/lib/config/config-chain.js:174:34)
at cachedFunction (/home/src/node_modules/@babel/core/lib/config/caching.js:33:19)
at buildRootChain (/home/src/node_modules/@babel/core/lib/config/config-chain.js:120:36)
at loadPrivatePartialConfig (/home/src/node_modules/@babel/core/lib/config/partial.js:85:55)
at Object.loadPartialConfig (/home/src/node_modules/@babel/core/lib/config/partial.js:110:18)
at Object.<anonymous> (/home/src/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js:140:26)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/home/src/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js:3:103)
@ multi (webpack)-dev-server/client/index.js ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./app/main.js
제 생각에, 제 생각엔, 제 문제 코드는 다음과 같습니다..babelrc파일:
"plugins": [
["transform-runtime", "transform-vue-jsx", "transform-regenerator", {
"polyfill": false,
"regenerator": true
}]
제가 이 문제를 어떻게 해결할 수 있는지 제안해 주실 수 있나요?감사합니다!
당신의.[잘못된 곳에 있어요그럴 것 같네요.
"plugins": [
"transform-runtime",
"transform-vue-jsx",
["transform-regenerator", {
"polyfill": false,
"regenerator": true
}]
]
언급URL : https://stackoverflow.com/questions/54597348/starting-vue-js-dev-server-gives-eror-plugins0-may-only-be-a-two-tuple-or-th
반응형
'programing' 카테고리의 다른 글
| 불완전한 유형에 대한 참조 포인터 (0) | 2022.07.16 |
|---|---|
| Array List 또는 String Array에서 모든 null 요소를 효율적으로 삭제하는 방법 (0) | 2022.07.16 |
| 억양을 없애고 문자열 전체를 일반 문자로 변환할 수 있는 방법이 있나요? (0) | 2022.07.16 |
| 뷰티파이 대화 상자의 문자열에 새 줄을 삽입할 수 없습니다. (0) | 2022.07.16 |
| 왜 구조체를 C로 자주 입력해야 하죠? (0) | 2022.07.16 |