728x90
반응형

Development/Error 24

[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] -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
반응형