react-component / react-component/virtual-list
Namespace 'React' has no exported member 'JSX'
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 814
- Forks
- 171
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 3
Description
Version 3.5.1 is throwing a type error from inside node_modules:
../../common/temp/node_modules/.pnpm/rc-virtual-list@3.5.1_sfoxds7t5ydpegc3knd667wn6m/node_modules/rc-virtual-list/lib/List.d.ts:38:89 - error TS2694: Namespace 'React' has no exported member 'JSX'.
38 export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): React.JSX.Element;
~~~
../../common/temp/node_modules/.pnpm/rc-virtual-list@3.5.1_sfoxds7t5ydpegc3knd667wn6m/node_modules/rc-virtual-list/lib/ScrollBar.d.ts:42:21 - error TS2694: Namespace 'React' has no exported member 'JSX'.
42 render(): React.JSX.Element;
~~~
Found 2 errors in 2 files.
Errors Files
1 ../../common/temp/node_modules/.pnpm/rc-virtual-list@3.5.1_sfoxds7t5ydpegc3knd667wn6m/node_modules/rc-virtual-list/lib/List.d.ts:38
1 ../../common/temp/node_modules/.pnpm/rc-virtual-list@3.5.1_sfoxds7t5ydpegc3knd667wn6m/node_modules/rc-virtual-list/lib/ScrollBar.d.ts:42
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the TypeScript errors and inspect the generated declarations in node_modules/.../rc-virtual-list/lib/List.d.ts and ScrollBar.d.ts, along with the project's React type versions. Determine which dependency or declaration compatibility causes React.JSX to be unavailable; the issue is done when the reported type errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100