Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
No puedo entender qué está causando este error de TypeScript. El código funcionaba bien hasta que actualicé un par de paquetes

Actualicé un par de paquetes y de repente recibí como 100 errores, todos similares a este:

 TS2769: No overload matches this call. Overload 1 of 3, '(thunkAction: ThunkAction<void, CombinedState<{ auth: AuthState; toastMessages: ToastMessageState; collections: CollectionsState; config: InitialState; ... 6 more ...; toolKitTypes: InitialState; }>, void, AnyAction>): void', gave the following error. Argument of type '(dispatch: ThunkDispatch<AppState, null, ToastMessagesActionTypes>) => void' is not assignable to parameter of type 'ThunkAction<void, CombinedState<{ auth: AuthState; toastMessages: ToastMessageState; collections: CollectionsState; config: InitialState; ... 6 more ...; toolKitTypes: InitialState; }>, void, AnyAction>'. Overload 2 of 3, '(action: AnyAction): AnyAction', gave the following error. Argument of type '(dispatch: ThunkDispatch<AppState, null, ToastMessagesActionTypes>) => void' is not assignable to parameter of type 'AnyAction'. Overload 3 of 3, '(action: AnyAction | ThunkAction<void, CombinedState<{ auth: AuthState; toastMessages: ToastMessageState; collections: CollectionsState; config: InitialState; ... 6 more ...; toolKitTypes: InitialState; }>, void, AnyAction>): void | AnyAction', gave the following error. Argument of type '(dispatch: ThunkDispatch<AppState, null, ToastMessagesActionTypes>) => void' is not assignable to parameter of type 'AnyAction | ThunkAction<void, CombinedState<{ auth: AuthState; toastMessages: ToastMessageState; collections: CollectionsState; config: InitialState; ... 6 more ...; toolKitTypes: InitialState; }>, void, AnyAction>'. 210 | } catch (error) { 211 | onChange('imageFile', urlInfo.imageFile); > 212 | dispatch(showErrorMessage('Failed to upload image file', error.message)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213 | } 214 | 215 | setIsLoading(false);

Estoy revirtiendo las actualizaciones y actualizando 1 por 1 para descubrir qué comenzó a causar todos estos errores, pero hasta ahora no he tenido éxito. Simplemente no puedo entender qué actualización de paquete puede causar todos estos errores.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!