강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

skyjoon2님의 프로필 이미지
skyjoon2

작성한 질문수

Vue.js 제대로 배워볼래?(Vue.js 프로젝트 투입 일주일 전)

Vue Router 설치하기

eslint 에러발생

작성

·

1.4K

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

     

답변 1

0

개발자의 품격님의 프로필 이미지
개발자의 품격
지식공유자

Vue CLI 버전이 업데이트 되면서 컴포넌트 이름을 무조건 2개 단어 이상으로 만들도록 바뀌었습니다.

컴포넌트 이름만 ContactView.vue 이런식으로 두단어 이상 조합으로 변경하시면 됩니다.

skyjoon2님의 프로필 이미지
skyjoon2

작성한 질문수

질문하기