개발하는 월퐁잉
놀면서 쉬면서 코딩 하기
개발하는 월퐁잉
전체 방문자
오늘
어제
  • 분류 전체보기 N
    • DBMS
      • DBeaver
      • HeidiSQL
      • MSSQL
      • MYSQL
    • Cloud
      • Azure
      • AWS
    • 업무
      • Slack
      • IT-Tip
    • Vue
    • HTML
    • Java
    • Gradle
    • IntelliJ N
    • GIT N

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • Eclipse
  • 미러링
  • ALTER TABLE
  • JSP
  • MySQL
  • vue
  • SQL Server
  • dba
  • Query
  • DBeaver
  • Trigger
  • 인텔리제이
  • npm install
  • GIT
  • 단축키
  • IntelliJ
  • 권한설정
  • Exiting because of an unresolved conflict
  • Vue.js
  • MSSQL

최근 댓글

최근 글

티스토리

250x250
250x250
hELLO · Designed By 정상우.
개발하는 월퐁잉

놀면서 쉬면서 코딩 하기

[Vue] Component name should always be multi-word 에러 조치 방법
Vue

[Vue] Component name should always be multi-word 에러 조치 방법

2023. 8. 1. 10:59
728x90

[Error 내용]

 

[원인]

  • vue에서 컴포넌트 명칭이 하나의 단어로 되어 있기 때문에 오류 발생
  • 기본적으로 vue에서는 HTML 요소와 혼동을 일으킬 수 있는 요소를 제거하기 위해  컴포넌트 명칭을 2가지 이상의 단어 조합을 권장하고 있다 

 

[해결]

  • 단일 단어가 아닌 다중 단어로 적용하면 해결
/* BAD */
Vue.component('test',{
})

//GOOD
Vue.component('BdTest',{
})
  •  ESLint 를 설치한 상황에서 하나의 단어로 작성 하고 싶을 경우 lintOnSave의 속성을 false 로 변경 하여 단일 이름 에러 인식을 막을수 있다
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    lintOnSave:false
})
728x90
반응형
저작자표시 비영리 변경금지 (새창열림)

'Vue' 카테고리의 다른 글

[Vue] Module not found: Error: Can't resolve ~  (0) 2023.08.09
[Vue] Vue 에디터 적용 하기 쉬운 Quill Editor  (0) 2023.08.04
[Vue] Vue 에디터 ( Toast Editor ) 적용  (0) 2023.07.31
[Vue] This is probably not a problem with npm. There is likely additional logging output above  (0) 2023.07.28
[Vue] Vue cli 최신 버전 업데이트 방법 ( vue create is a Vue CLI x only command and you are using Vue CLI x.x.x. You may want to run the following to upgrade to Vue CLI x)  (0) 2023.06.23
    'Vue' 카테고리의 다른 글
    • [Vue] Module not found: Error: Can't resolve ~
    • [Vue] Vue 에디터 적용 하기 쉬운 Quill Editor
    • [Vue] Vue 에디터 ( Toast Editor ) 적용
    • [Vue] This is probably not a problem with npm. There is likely additional logging output above
    개발하는 월퐁잉
    개발하는 월퐁잉
    놀멍 쉬멍 개발하는 퐁 - 기억은 사라지지만 기록은 남는다

    티스토리툴바