inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Slack 클론 코딩[실시간 채팅 with React]

사용자 초대 모달 만들기

no overload matches this call

352

진현서

작성한 질문수 12

0

TS2769: No overload matches this call.

  Overload 1 of 3, '(loadFn: (props: unknown) => Promise<DefaultComponent<unknown>>, options?: OptionsWithoutResolver<unknown> | undefined): LoadableComponent<unknown>', gave the following error.

    Type 'Promise<typeof import("/workspace/chatting_app/alecture/layouts/Workspace/index")>' is not assignable to type 'Promise<DefaultComponent<unknown>>'.

      Type 'typeof import("/workspace/chatting_app/alecture/layouts/Workspace/index")' is not assignable to type 'DefaultComponent<unknown>'.

        Property 'default' is missing in type 'typeof import("/workspace/chatting_app/alecture/layouts/Workspace/index")' but required in type 'DefaultImportedComponent<unknown>'.

  Overload 2 of 3, '(loadFn: (props: any) => Promise<ComponentClass<any, any> | { default: ComponentClass<any, any>; }>, options?: Options<any, ComponentClass<any, any>> | undefined): LoadableClassComponent<...>', g

ave the following error.

      Type 'typeof import("/workspace/chatting_app/alecture/layouts/Workspace/index")' is not assignable to type 'ComponentClass<any, any> | { default: ComponentClass<any, any>; }'.

        Property 'default' is missing in type 'typeof import("/workspace/chatting_app/alecture/layouts/Workspace/index")' but required in type '{ default: ComponentClass<any, any>; }'.

 const LogIn = loadable(() => import('@pages/LogIn'));

 const SignUp = loadable(() => import('@pages/SignUp'));

 const Workspace = loadable(() => import('@layouts/Workspace'));

제로초님 아무리 노력해도 어디가 문제인지 못찾겠습니다 어디서부터 어떻게 해결해야 할까요??

babel 웹팩 typescript Socket.io react 클론코딩

답변 2

1

제로초(조현영)

Workspace/index.tsx에서 export default 안 하신 것 아닌가요?

0

진현서

구름ide자체 문제인 것 같습니다 감사합니다!

0

Genevieve Adams

The roadmap feature makes sense for sorting through thousands of courses on a platform this size without wasting time on mismatched topics. It aligns well with building structured skills in writing or research over time. For handling a full dissertation project after that foundation, BuyDIssertationPaper supplies focused help that matches independent study habits.

타입 점검하기 swr관련 질문 있습니다.

0

99

2

기본 셋팅과 관련하여

0

154

1

초기 셋팅 back과 front만 남겨두고 다 지운 후 진행 방법

0

163

2

focus 시에만 화면 업데이트 되는 이유 + 해결방법

0

252

2

useEffect 개수 관리

0

179

2

라이브러리 서치 방법

0

174

2

함수 정의 패턴

0

123

1

npm run dev 에러

0

222

3

npx webpack 후 에러

0

241

2

'void' 형식 식의 truthiness를 테스트할 수 없습니다.ts(1345)

0

204

2

사용자 가입시 에러발생 (TypeError: Cannot read properties of null (reading 'addMembers')

1

251

2

초기세팅중 packge.json 에러떠요

0

213

2

CORS - Access-Control-Allow-Origin 누락 문제

0

515

3

로그인 페이지 무한 새로고침 현상

0

693

2

Module not found: Error: Can't resolve './App' 에러

0

1018

1

배포 방법

0

352

2

npm run dev 시 빌드가 매우 느려졌습니다

0

1124

2

alias 경로 설정 오류

0

515

2

fetcher 함수의 data 값이 두번 찍히는 이유

0

340

1

제네릭 질문

0

274

2

ts-node 대신 tsx 사용여부

0

419

1

배포 관련 질문

0

268

1

[nginx + https] 서비스를 실행하면 niginx가 아닌 서비스 화면을 보여주게 하고 싶습니다.

0

432

2

[배포하기] webpack에 aws 퍼블릭 IPv4 주소 와 포트 주소를 작성하고 나서 빌드후 실행하면 오류가 발생합니다.

0

377

1