Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`IconNameSubset` duplicate name issue when using multiple icon sets

See original GitHub issue

Hi, I believe we may have uncovered a potential breaking change while making a switch from 5.0.1 to 5.7.1, or alternatively it may be a misuse from our side.

In our project we have two sets of icons, icons and brand-icons. We isolate the two by running different svg-to-ts commands and generating separate files.

this change in v5.6.0 which introduced the IconNameSubset causes us a bit of an issue is we now have two exported types with the same name.

An unhandled exception occurred: projects/canopy/src/public-api.ts:25:1 - error TS2308: Module './lib/icon/index' has already exported a member named 'IconNameSubset'. Consider explicitly re-exporting to resolve the ambiguity.

There are probably a few things we could to fix it in our project, but I thought I would raise it here first to see if you think it had any validity as a bug. If so I’m happy to raise a PR to try and fix it.

One route would be to provide some kind of cli option to prefix the type in the same way it’s done for the interface name. With a new option a breaking change could be avoided by deferring back to the default if no option is provided, the downside is that it might be a bit of an obscure option.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

kreuzerkcommented, Dec 3, 2020

Thx a lot for your effort 👍

kreuzerkcommented, Dec 6, 2020

🎉 This issue has been resolved in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using multiple icon sets - Microsoft Community Hub
Hi, I am looking for guidance on using multiple icon sets within one range of data. In a range of data the following...
Read more >
Excel Icon Sets conditional formatting: inbuilt and custom
The article provides detailed guidance on how to use conditional formatting Icon Sets in Excel. It will teach you how to create a...
Read more >
Configuring Your App to Use Alternate App Icons
People select an alternate icon in the app interface from a collection that you provide. Add Icon Assets for the Alternate Icons. For...
Read more >
Conditional Formatting with Icon Sets in Excel - YouTube
Conditional formatting in Excel has an Icon Set feature. Icon Sets have a variety of different icons. You can use icons, shapes, indicators, ......
Read more >
Individual Icon Sets - Iconify Documentation
Each package contains one icon set, split in several files: ... You can import icon set using named import from package, like this:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found