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

[icon exports]: error when trying to use the icon exports from @carbon/web-components package #18311

Open
2 tasks done
annawen1 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #18312
Open
2 tasks done
Assignees

Comments

@annawen1
Copy link
Member

annawen1 commented Jan 8, 2025

Package

@carbon/web-components

Browser

Chrome

Package version

latest

React version

No response

Description

From the watson assistant team, they are running into an error in NextJS when trying to use icons from the @carbon/web-components package like so

import ThumbsDown16 from '@carbon/web-components/es/icons/thumbs-down/16.js'

Error message:

Error: Package subpath './es/icons/thumbs-down/16.js' is not defined by "exports" in /Users/.../node_modules/@carbon/web-components/package.json imported from /Users/...

Suggested Severity

Sev 3

Application/PAL

Watson Assistant

Code of Conduct

@annawen1 annawen1 self-assigned this Jan 8, 2025
@annawen1 annawen1 moved this to 🏗 In Progress in Design System Jan 8, 2025
@annawen1 annawen1 moved this from 🏗 In Progress to 🚦 In Review in Design System Jan 8, 2025
@annawen1 annawen1 moved this from 🚦 In Review to 🏗 In Progress in Design System Jan 8, 2025
@annawen1 annawen1 linked a pull request Jan 8, 2025 that will close this issue
@annawen1 annawen1 moved this from 🏗 In Progress to 🚦 In Review in Design System Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🚦 In Review
Development

Successfully merging a pull request may close this issue.

1 participant