전체 글(135)
-
[Vue] Use // eslint-disable-next-line to ignore the next line.Use /* eslint-disable */ to ignore all warnings in a file.
vue create 프로젝트명 뷰 프로젝트를 생성하고 나서, npm run serve를 했더니 바로 아래와 같은 에러가 떳다. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. 해결 방법) vue.config.js 파일에서 const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, devServer: { overlay: false, }, }); devServer: { overlay: false} 를 추가 ..
2022.12.26 -
[Vue] ref
태그에 Ref 속성으로 문자열(위 예제에서는 inputName)로 값을 넣어 주면, 이후 script 태그에서 해당 태그에 접근을 할 수가 있다. this.$refs.inputName // 이처럼 input 태그에 접근을 할 수가 있다.
2022.08.31 -
[Error] error Component name "Home" should always be multi-word vue/multi-word-component-names
error Component name "Home" should always be multi-word vue/multi-word-component-names vue에서는 위와 같이 name의 값을 두 단어의 조합으로 해야 한다는 규칙(?)이 있다. 나는 이러한 필요성을 못 느껴서 이에 대한 설정을 OFF하기로 했다. 그래서, package.json에서 "vue/multi-word-component-names": 0 해당 설정값을 넣어 주고 다시 실행을 했더니, 정상적으로 에러 없이 실행이 됐다.
2022.08.28 -
[Error] Parsing error: The keyword 'import' is reserved
회사에서 vue.2 버전으로 프로젝트를 진행을 하다보니 2버전으로 공부를 하기 위해 vue프로젝트를 생성 했는데, 처음부터 Import 에러가 !!! 아무것도 안 했는데 시작부터 에러는 좀 선 넘는짓 아닌가 ㅡㅡ;; 아무튼 검색을 하고 봤더니 .eslintrc.js에서 설정을 해주면 되는데... 나는 .eslintrc.js가 없었다. 그래서 루트 경로에서 파일을 만들고, // .eslintrc.js module.exports = { // 현재 eslintrc 파일을 기준으로 ESLint 규칙을 적용 root: true, // 추가적인 규칙들을 적용 env: { node: true, }, parserOptions: { parser: "babel-eslint", }, extends: [ "eslint:rec..
2022.08.19 -
[Spring Cloud] Spring MSA
Eureka Gateway Eureka Server Eureka Client MSA개발을 하기 위해 위의 3가지가 필요하다. 우선 Gateway의 역할은 Client에서 들어오는 API주소를 Eureka Server로 부터 정보를 얻어, 해당 API 주소를 호출 하고 서비스를 요청한 클라이언트의 정보가 맞는지 확인 하는 역할을 한다. 먼저 Eureka Gateway에 대해 설정 하겠습니다. 이제 application.properties(혹은 yml)에서 작업을 한다. Gateway의 포트는 8000번이다. Eureka Server에 Client로 등록 fetch-registry, register-with-eureka 는 기본적으로 false이다. true로 해놔야 Eureka Server에 Client에..
2022.07.19 -
[CS] 사설 IP와 공용IP
https://gamung.tistory.com/27 진짜 ip 주소 찾는 방법 (192.x.x.x는 진짜 ip 주소가 아니다.) 진짜 ip 주소 찾는 방법 (192.x.x.x는 진짜 ip 주소가 아니다.) 안녕하세요 감웅입니다. 며칠 전에 지인이 진짜 ip주소 확인하는 방법이 뭔지 저에게 물어봤습니다. 그 이유인즉슨 cmd창에 ipconfig gamung.tistory.com 읽기 쉽게 잘 쓰신 분이라 게시 합니다
2022.04.18