2
respostas

Problemas na instalação do Redux Saga

estou na aula 2 do modulo 6 e estou com os seguinte erro abaixo?!! na instalação do redux-saga

Insira aqui a descrição dessa imagem para ajudar na acessibilidade

Type '(getDefaultMiddleware: import("c:/Users/paulo.firmino/Cursos/alura/react-typescript/trato_tech/node_modules/@reduxjs/toolkit/dist/getDefaultMiddleware").GetDefaultMiddleware<{ cart: any[]; items: import("c:/Users/paulo.firmino/Cursos/alura/react-typescript/trato_tech/src/@types/ItemsProps").ItemProps[]; categories: ...' is not assignable to type '(getDefaultMiddleware: import("c:/Users/paulo.firmino/Cursos/alura/react-typescript/trato_tech/node_modules/@reduxjs/toolkit/dist/getDefaultMiddleware").GetDefaultMiddleware<{ cart: any[]; items: import("c:/Users/paulo.firmino/Cursos/alura/react-typescript/trato_tech/src/@types/ItemsProps").ItemProps[]; categories: ...'. Two different types with this name exist, but they are unrelated.
  Type 'Tuple<[ListenerMiddleware<unknown, ThunkDispatch<unknown, unknown, UnknownAction>, unknown>, ListenerMiddleware<unknown, ThunkDispatch<unknown, unknown, UnknownAction>, unknown>, SagaMiddleware<...>, ThunkMiddleware<...>]>' is not assignable to type 'Tuple<Middlewares<{ cart: any[]; items: ItemProps[]; categories: { id: string; name: string; thumbnail: string; header: string; description: string; }[]; search: string; }>>'.
    Type '[ListenerMiddleware<unknown, ThunkDispatch<unknown, unknown, UnknownAction>, unknown>, ListenerMiddleware<unknown, ThunkDispatch<unknown, unknown, UnknownAction>, unknown>, SagaMiddleware<...>, ThunkMiddleware<...>]' is not assignable to type 'Middlewares<{ cart: any[]; items: ItemProps[]; categories: { id: string; name: string; thumbnail: string; header: string; description: string; }[]; search: string; }>'.
      Type 'SagaMiddleware<object> | ThunkMiddleware<{ cart: any[]; items: ItemProps[]; categories: { id: string; name: string; thumbnail: string; header: string; description: string; }[]; search: string; }, UnknownAction> | ListenerMiddleware<...>' is not assignable to type 'Middleware<{}, { cart: any[]; items: ItemProps[]; categories: { id: string; name: string; thumbnail: string; header: string; description: string; }[]; search: string; }, Dispatch<UnknownAction>>'.
        Type 'SagaMiddleware<object>' is not assignable to type 'Middleware<{}, { cart: any[]; items: ItemProps[]; categories: { id: string; name: string; thumbnail: string; header: string; description: string; }[]; search: string; }, Dispatch<UnknownAction>>'.
          Types of parameters 'next' and 'next' are incompatible.
            Type 'unknown' is not assignable to type 'T'.
              'T' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.

Matricule-se agora e aproveite até 50% OFF

O maior desconto do ano para você evoluir com a maior escola de tecnologia

QUERO APROVEITAR
2 respostas

Olá

manda o teu repositorio completo!