Skip to content

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

@annawen1

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

Projects

  • Status

    🚦 In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions