◐ Shell
clean mode source ↗

chore: pin react types to 18.x project-wide by deepshekhardas · Pull Request #3313 · triggerdotdev/trigger.dev

🚩 Override silently downgrades trigger-sdk from @types/react 19 to 18

packages/trigger-sdk/package.json declares @types/react: ^19.2.14 as a devDependency, but this override forces it to 18.2.69. This is a significant version downgrade (React 19 → 18 types). I verified that the only React usage in the SDK (packages/trigger-sdk/src/v3/chat-react.ts) uses basic hooks (useCallback, useEffect, useRef, useState) that are fully compatible with React 18 types. However, the explicit ^19.2.14 pin was presumably added intentionally — future code additions to chat-react.ts using React 19 features (e.g., useActionState, use(), or the new ref prop pattern) would silently fail to typecheck correctly since the override masks the package-level declaration. Consider updating the trigger-sdk's package.json devDependency to 18.2.69 to make the intent explicit rather than relying on a global override to silently downgrade it.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.