-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
eslint 에러발생
22.07.28 23:42 작성 조회수 1.08k
0
- Contact를 추가하였는데 왜 아래와 같은 에러가 발생하는 걸까요...?
- DIV태그로 한번 더 감싸주기 및 config.jjs의
transpileDependencies: 의값을 false로도 설정해봤습니다... 원인을 잘 모르겠습니다.
-
ERROR Failed to compile with 1 error 오후 11:37:55
[eslint]
C:\Users\lg\Desktop\learn-vue-js-master\vue-default\src\views\Contact.vue
1:1 error Component name "Contact" should always be multi-word vue/multi-word-component-names✖ 1 problem (1 error, 0 warnings)
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR in [eslint]
C:\Users\lg\Desktop\learn-vue-js-master\vue-default\src\views\Contact.vue
1:1 error Component name "Contact" should always be multi-word vue/multi-word-component-names✖ 1 problem (1 error, 0 warnings)
webpack compiled with 1 error
답변을 작성해보세요.
0
개발자의 품격
지식공유자2022.08.02
Vue CLI 버전이 업데이트 되면서 컴포넌트 이름을 무조건 2개 단어 이상으로 만들도록 바뀌었습니다.
컴포넌트 이름만 ContactView.vue 이런식으로 두단어 이상 조합으로 변경하시면 됩니다.
답변 1