vue2 라우터 설치만 3번째...라우터만 설치하면 나타나는 에러늪!!!!
꼭? 필요한 설정이 있어서 기록합니다.
에러
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]
D:\stduy\vue2-project\todo2\src\views\HomeView.vue
13:11 error Component name "home" should always be multi-word vue/multi-word-component-names
* 해결 *
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
lintOnSave:false <--- 추가
})
vue.config.js 파일에 lintOnSave의 속성을 false로 추가해주면 컴포넌트 단일 이름의 에러 인식을 막을 수 있습니다.
동일 에러는 사라지고 정상 작동 되고있습니다.^^;
'작업 일지 > 이슈기록' 카테고리의 다른 글
Vue2 - 라우터 설치 오류 (0) | 2024.04.18 |
---|---|
Vue2 - Component name "***" should always be multi-word (0) | 2024.04.17 |
Vue2 - warnings potentially fixable with the `--fix` option (0) | 2024.04.17 |
error - ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet (0) | 2024.03.05 |
error - Eclipse : 'Failed to create the Java Virtual Machine' (0) | 2024.03.05 |