강의

멘토링

로드맵

Hình ảnh hồ sơ của skyjoon24931
skyjoon24931

câu hỏi đã được viết

Bạn có muốn học Vue.js đúng cách không? (Một tuần trước khi bắt đầu dự án Vue.js)

Cài đặt bộ định tuyến Vue

eslint 에러발생

Viết

·

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

     

vuejsvuex

Câu trả lời 1

0

realprogrammers님의 프로필 이미지
realprogrammers
Người chia sẻ kiến thức

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

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

Hình ảnh hồ sơ của skyjoon24931
skyjoon24931

câu hỏi đã được viết

Đặt câu hỏi