react-icons / react-icons/react-icons
Errors when running 'yarn tsc' cmd: Module './io' has already exported a member named ...
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.7k
- Forks
- 809
- PR merge metrics
- No merged PRs in 30d
Description
HI !
When I run yarn tsc I have the following errors (I past just some of them because the rest are the same) :
node_modules/react-icons/all.d.ts:4:1 - error TS2308: Module './io' has already exported a member named 'IoLogoAndroid'. Consider explicitly re-exporting to resolve the ambiguity.
4 export * from './io5';
~~~~~~~~~~~~~~~~~~~~~~
node_modules/react-icons/all.d.ts:4:1 - error TS2308: Module './io' has already exported a member named 'IoLogoAngular'. Consider explicitly re-exporting to resolve the ambiguity.
4 export * from './io5';
~~~~~~~~~~~~~~~~~~~~~~
node_modules/react-icons/all.d.ts:4:1 - error TS2308: Module './io' has already exported a member named 'IoLogoApple'. Consider explicitly re-exporting to resolve the ambiguity.
4 export * from './io5';
~~~~~~~~~~~~~~~~~~~~~~
...
Intellij highlight the error as well:

I use react-icons in version 4.1.0 and typecript version 4.0.5
Desktop :
- Device: PC
- OS: Ubuntu
- Browser: Chrome
- Stack: Electron, Typescript
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 report with yarn tsc using react-icons 4.1.0 and TypeScript 4.0.5, then inspect node_modules/react-icons/all.d.ts and its io and io5 exports. Done means the duplicate-export TS2308 errors no longer occur during type checking, with the compatible dependency or configuration change documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100