Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

123
Visualizações
Create react app changes TS type checking for my project

I have a project that I decided to wrap with CRA, but the problem is that after that, I got a huge amount of errors (more than a thousand) that were not in the project before using CRA. I left all the dependencies from the old project (like Typescript), I even specified them in the resolutions block in package.json. I haven't touched any files like tsconfig.json or others. I cloned a second copy of the project to compare the errors, and the same variables in the code have different types, for example

const { data }: AxiosResponse<Response> = yield* call...

In original project data has type:

AxiosResponse<T,D>.data:Response

in CRA project i get

TS2322: Type 'unknown' is not assignable to type 'AxiosResponse'.

How is it possible to solve this problem? Current typescript version is 4.4.4

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda