Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeadingIcon - component not available via @commercetools-frontend/ui-kit package #2777

Open
ByronDWall opened this issue Apr 11, 2024 · 1 comment

Comments

@ByronDWall
Copy link
Contributor

The LeadingIcon ui-kit component is not available from the @commercetools-frontend/ui-kit package, and instead must be imported by installing @commercetools-uikit/icons.

To Reproduce

  1. install @commercetools-frontend/ui-kit
  2. try to import LeadingIcon into a file, e.g. import { LeadingIcon } from @commercetools-frontend/ui-kit
  3. Get an error: Module '"@commercetools-frontend/ui-kit"' has no exported member 'LeadingIcon'.

Expected behavior

LeadingIcon component should be bundled with / made available by ``@commercetools-frontend/ui-kit`.

Having to install @commercetools-uikit/icons separately, and import the component using this syntax: import LeadingIcon from '@commercetools-uikit/icons/leading-icon'; is unexpected and not documented

Screenshots

Error when importing from @commercetools-frontend/ui-kit:
Screenshot 2024-04-11 at 10 37 23 AM

Successful import from @commercetools-uikit/icons/leading-icon:
Screenshot 2024-04-11 at 10 52 47 AM

@ddouglasz
Copy link
Contributor

Thank you for reporting the issue.
We will take a look at it and update on how we would proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants