Commit cbae69b
committed
Issue 3: react-use Type Definitions (API Reports Build)
Root Cause: react-use@17.6.0 has outdated TypeScript definitions incompatible with React 18 / TypeScript 5.7:
- RefForwardingComponent was removed in React 18 types
- IDevicePermissionDescriptor type incompatibility with PermissionName
Investigation: Checked for newer versions - latest is still 17.6.0 (Dec 2024), fix PR was closed without merging, library appears unmaintained
Fix: Created yarn patch for react-use@17.6.0:
- Replaced RefForwardingComponent → ForwardRefRenderFunction
- Fixed IDevicePermissionDescriptor by removing incompatible extends PermissionDescriptor
Files Patched:
- .yarn/patches/react-use-npm-17.6.0-327459097c.patch
- Automatically added to package.json resolutions
Result: ✓ yarn build:api-reports plugins/ai-experience succeeds1 parent 32725aa commit cbae69b
5 files changed
Lines changed: 64 additions & 12 deletions
File tree
- workspaces/ai-integrations
- .yarn/patches
- plugins/ai-experience
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
| |||
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10568 | 10568 | | |
10569 | 10569 | | |
10570 | 10570 | | |
10571 | | - | |
| 10571 | + | |
10572 | 10572 | | |
10573 | 10573 | | |
10574 | 10574 | | |
| |||
29456 | 29456 | | |
29457 | 29457 | | |
29458 | 29458 | | |
29459 | | - | |
| 29459 | + | |
29460 | 29460 | | |
29461 | 29461 | | |
29462 | 29462 | | |
| |||
29481 | 29481 | | |
29482 | 29482 | | |
29483 | 29483 | | |
| 29484 | + | |
| 29485 | + | |
| 29486 | + | |
| 29487 | + | |
| 29488 | + | |
| 29489 | + | |
| 29490 | + | |
| 29491 | + | |
| 29492 | + | |
| 29493 | + | |
| 29494 | + | |
| 29495 | + | |
| 29496 | + | |
| 29497 | + | |
| 29498 | + | |
| 29499 | + | |
| 29500 | + | |
| 29501 | + | |
| 29502 | + | |
| 29503 | + | |
| 29504 | + | |
| 29505 | + | |
| 29506 | + | |
| 29507 | + | |
| 29508 | + | |
29484 | 29509 | | |
29485 | 29510 | | |
29486 | 29511 | | |
| |||
0 commit comments