Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- javacript
- JSON.stringify
- MongoDB
- JavaScript
- AGGREGATE
- DB
- nextjs
- 이메일 전송
- 로그스태시
- Map
- nodemailer
- 카카오 소셜로그인
- nest
- 중첩 구조 분해
- 위크셋
- Mongoose
- react-slick
- 카카오로그인
- 구조 분해 할당
- logstash
- context switch
- nestjs
- 화살표 함수
- 자바스크립트
- JSON.parse
- 참조에 의한 객체 복사
- 객체
- 위크맵
- 캐러셀
- TypeScript
Archives
- Today
- Total
뚜sh뚜sh
[NextJS] TypeError: Right-hand side of 'instanceof' is not an object 본문
Framework/NextJS
[NextJS] TypeError: Right-hand side of 'instanceof' is not an object
뚜sh뚜sh 2023. 4. 24. 17:03아래 코드에서 TypeError: Right-hand side of 'instanceof' is not an object가 생겨서 로직이 제대로 처리되지 않았다
try {
tokenValue = parseJwt(Cookies.get(tokenName), tokenKey) as AuthToken;
} catch (err) {
console.log(err);
}
[해결방법]
원래 사용하고 있던 jsonwebtoken 버전이 9.0.0이었는데 8.5.1로 다운그레이드하니 해결되었다 !
-모듈 삭제
npm uninstall 모듈
- 원하는 버전으로 모듈 설치
npm install 모듈@원하는 버전
'Framework > NextJS' 카테고리의 다른 글
[NextJS] react-datepicker css custom (0) | 2023.05.03 |
---|---|
[NextJS] 파일 다운로드 (html a태그) (0) | 2023.02.22 |
[NextJS] 이메일 전송 기능 만들기 (nodemailer) (0) | 2023.02.13 |
[NextJS] 구글 애널리틱스 사용 방법 (typescript) (0) | 2023.02.07 |
[NextJS] 캐러셀 만들기 (react-slick) (0) | 2022.12.21 |
Comments