본문 바로가기

Error log

(5)
delete cr eslint(prettier/prettier) 방법 1 VS code 하다의 CRLF를 LF로 변경 해준다. 방법 2 eslinrc.json 변경 "prettier/prettier": [ "error", { "endOfLine": "auto" } ]rules에 위 코드 추가
[GIT] A branch name 'gh-pages' already exists node_modules 폴더의 gh-pages를 지우고 다시 인스톨해주면 문제가 없어진다. 정확인 문제가 있는 부분은 node_modules/gh-pages/.cache 폴더이다.
[GIT] HttpRequestException encountered & Could not read Username for... 위와 같은 메세지가 출력된다면, 2가지를 확인해보자. 1. username이 config에 등록되어 있는지 확인 git config --list 2. git 버전을 최신으로 설치 본인은 2번이 문제였으며, 2.15버전을 사용하고 있었다. 2.23 버전으로 업데이트 하니 문제가 사라졌다. Bug Fixes Cleaned and hardened the interaction with the Windows Credential Manager. To install the Git Credential Manager, download and double-click the GCMW-1.14.0.exe installer. It is that easy, it will even install Git for Windows 2.1..
Cannot read property ‘match’ of undefined in NPM package-lock.json 파일 제거 node_modules 폴더 제거 npm install
OverwriteModelError: Cannot overwrite `xxx` model once compiled mongoose에서 발생하는 오류로 동일한 모델을 2번 생성했을 때 발생한다. 내가 실수한 경우는 VS Code 자동완성을 이용하다 발생했다. 프론트에서도 create 함수가 필요했고, 백엔드에서는 create 컨트롤러가 있었다. create로 자동 import 해버리니 프론트에서 백엔드의 create 컨트롤러를 가져온 경우다. portfolio.controller를 2번 import 하고 있는걸 볼 수 있다.