JedWatson / JedWatson/react-select

Does not work with TypeScript from version 5.8.3

Open
#6,040 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

It looks like from version 5.8.3 it's no longer compatible with TypeScript (tested with "typescript": "5.5.4").
There is no type check on <Select /> properties. Version 5.8.2 works OK.

See example:
https://codesandbox.io/p/sandbox/react-select-typescript-forked-g8lwfv

  • It renders, but there is no type check so you can pass in anything.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox and compare the type-checking behavior between react-select 5.8.2 and 5.8.3 using TypeScript 5.5.4. Trace the published package types involved in Select properties and verify that invalid properties are rejected again; the issue is done when the regression is covered by a reproducible type check.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.