728x90

Development/Error 25

[error] (node:27064) [MONGOOSE] DeprecationWarning:

서버 코드 작성 중 실행을 하니까 아래와 같은 오류가 발생하였다. (node:27064) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning. (Use `node --trace-deprecation ...` to show where the warning was creat..

Development/Error 2023.02.21

[error] 'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.라는 문구가 나온다면 환경변수를 설정하면 된다. 경로 : 내PC >> 시스템 속성 >> 고급 >> 환경변수 >> path 찾기에서 시스템 환경변수 검색만 해도 나오는 경우가 있다. C:\Program Files\Git\bin 까지 하면 완료 vsCode에서 저 문구가 나올때마다 폴더 내에서 gitBash를 이용했었다. 그런데 내가 원하는 파일 외에도 업데이트 되거나, 뭔가 충돌되는 경우가 많아서 해결방법을 알아보았다. 생각보다 단순했던 환경변수 설정하기 ㅎㅎ 이제 편하게 vsCode 내에서 git code를 입력할 수 있다.

Development/Error 2023.02.02

[error] -TypeError: Cannot read properties of undefined (reading 'pathname')

-TypeError: Cannot read properties of undefined (reading 'pathname') -react-dom.development.js:18687 The above error occurred in the component: 대충 이런 에러가 나왔다. npm install react-router-dom도 했는데 왜 발생하나 했는데,, 원인 : import {BrowserRouter as Route, Router, Routes} from 'react-router-dom'; 해결 >> import {BrowserRouter as Router, Routes, Route } from 'react-router-dom'; route를 router내 routes보다 앞에 작성해서.....

Development/Error 2023.01.24
728x90