상황 

npm install faker

를 한 후, faker를 사용 후 적용을 했더니 Error : faker.js : NotFound

이유
The developer of these libraries intentionally introduced an infinite loop that bricked thousands of projects that depend on ‘colors’ and ‘faker.’  

-> 라이브러리의 개발자는 의도적으로 '색상' '페이커' 의존하는 수천 개의 프로젝트를 망가뜨리는 무한 루프를 도입했습니다.

해결 

npm install faker@5

구버전으로 버전을 바꿔준 후 해결 할 수 있었습니다.

'개발일지 > Troubleshooting' 카테고리의 다른 글

[Header설정 오류] - 협업 중..  (0) 2023.04.19

상황 
  로그인 시,  Front에 AccessToken을 전달해줬지만, 다른 페이지를 요청할 때 AccessToken이 넘어오지 않은 경우.

이유
  프론트에서 header를 설정해 주지 않았기 때문에 local storage에만 저장이 되고 전달이 되지 않았습니다.
 

해결 

axios.defaults.headers.common['Authorization'] = `Bearer ${accessToken}`;

프론트에서 서버로 토큰을 보낼때 꼭 헤더를 설정하는걸 잊지 말도록 합시다!

'개발일지 > Troubleshooting' 카테고리의 다른 글

[Faker Error]  (0) 2023.04.19

+ Recent posts