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