Check for TypeScript Configuration Issues: Review your tsconfig.json for any strict settings that might be causing this behavior. For instance, settings like noImplicitAny or strict can influence type checking. Adjust these settings as necessary:
{ "compilerOptions": { "strict": true, "noImplicitAny": false, // other settings } }