본문 바로가기

Errors18

[SVN] svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options 폴더를 svn 서버에 생성을 하려고 아래 명령어를 입력했는데 에러가 발생했다. svn mkdir svn://localhost/trunk svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options svn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found 에러 메세.. 2021. 7. 15.
[SVN] svnadmin: E000002: Could not create top-level directory svnadmin으로 서버에서 제공할 svn 레파지토리를 생성하려고하는데 오류가 발생했다. svnadmin create ./svn/repos/myApp 오류 svnadmin: E000002: Repository creation failed svnadmin: E000002: Could not create top-level directory svnadmin: E000002: Can't create directory 'svn/repos/myApp': No such file or directory 발생 원인 폴더가 없어서 발생했다. svnadmin create에서 자동으로 폴더를 생성해주지는 않나보다. 2021. 7. 15.
[Cookie] This Set-Cookie Domain Attribute Was Invalid With Regards To The Current Host Url. 로그인을 구현하다가 다음과 같은 에러를 만났다. 후.. 해결해보자. This Set-Cookie Domain Attribute Was Invalid With Regards To The Current Host Url 우선, 쿠키는 서버에서 사용자 에이전트로 보내는 작은 정보이다. 보안 상의 이유로, 브라우저는 스크립트에서 시작한 교차 출처 HTTP 요청을 제한한다. 쿠기도 마찬가지이다. 즉, 서버와 클라이언트의 Origin(출처)가 달라서 발생하는 문제이다. Origin은 null이나 아래와 같은 값이 올 수 있다. Origin: "://" [ ":" ] Origin이 같은 것은 scheme과 hostname, port가 같은 것을 의미한다. https://developer.mozilla.org/ko/do.. 2021. 7. 12.
[Typescript] Property 'includes' does not exist on type 'string[]'. ts(2339) includes 에러가 났다. 오류 원인: includes 문법은 ES7 (ES2016)부터 지원된다. 버전을 es2017로 높여주자. 아래와 같이 es2017 문법을 추가하자. 2021. 6. 1.
[Typescript ]Property 'innerText' does not exist on type 'EventTarget'.ts(2339) 이벤트 위임을 구현하면서 target에 접근하면서 발생했다. digitClickEvent는 eventListener의 callback 이다. const digitClickEvent = (e: Event): void => { console.log(e.target.innerText); }; 타입스크립트가 적절한 타입을 찾지 못해서 발생하는 오류이다. 타입스크립트에게 명시적 형변환을 해주자. const digitClickEvent = (e: Event): void => { const eventTarget = e.target as HTMLElement; console.log(eventTarget.innerText); }; https://stackoverflow.com/questions/54886637/error.. 2021. 6. 1.
[Typescript] cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module. 타입스크립트 1일차 다음과 같은 오류를 만났다. 코드는 한줄밖에없는데 무엇이 문제일까..? src/js/index.ts:1:1 - error TS1208: 'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module. const i = 'holee'; console.log(i); > javascript-calculator@1.0.0 check-types > tsc src/js/index.ts:1:1 - error TS1208: 'index.ts' .. 2021. 5. 21.