Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 밸류즈
- react
- MRC
- 로그인
- stock option
- 빌드 및 배포
- 스프링시큐리티
- 마이페이지
- 캘린더 라이브러리
- 파생상품평가
- userManagement
- 밸류즈 홈페이지
- 달력 라이브러리
- Token
- ui탬플릿
- Typesciprt
- 배포
- 로그인 로직
- mypage
- 공통메서드
- 관리자페이지
- register
- Update
- Ajax
- 인증처리
- 이미지 업로드
- Styled Components
- jsonwebtoken
- 회원가입로직
- RCPS
Archives
- Today
- Total
I T H
[에러해결] d[("get" + method)] is not a functionTypeError: d[("get" + method)] is not a function 본문
에러 코드 해결
[에러해결] d[("get" + method)] is not a functionTypeError: d[("get" + method)] is not a function
thdev 2024. 2. 13. 18:29- Calender의 데이터 값을 관리하는 useState 부분에서 다음과 같은 에러가 발생했다.
[ 에러 해결 전 코드 ]
[ 해결 방법 ]
- calenderEvent의 start와 end의 타입이 Date로 되어있다.
- 데이터 상태값을 관리하는 useState의 start와 end의 값에 "toDate()"를 넣어주었다.
const [events, setEvents] = useState([
{
start: moment().toDate(),
end: moment().add(1, "hours").toDate(),
title: "default",
},
] as unknown as CalendarEvent[]);
[ 에러 해결 후 코드 ]
'에러 코드 해결' 카테고리의 다른 글
[에러 해결] 엑셀다운로드 / headers 에 content-disposition 안보임 (0) | 2024.02.21 |
---|---|
[에러해결] E11000 duplicate key error collection: (1) | 2024.02.15 |
[에러해결] Type 'string | null' is not assignable to type 'string'. (0) | 2024.02.11 |
[에러해결] Type 'undefined' is not assignable to type (1) | 2024.02.06 |
[에러해결] npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree (0) | 2024.02.05 |