react-icons / react-icons/react-icons

Errors when running 'yarn tsc' cmd: Module './io' has already exported a member named ...

Open
#407 4 comments 3 reactions 0 assignees View on GitHub

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:
image

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.