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

fix: web-components - specify js extensions for icon imports #17818

Merged

Conversation

annawen1
Copy link
Member

@annawen1 annawen1 commented Oct 21, 2024

Closes #17813
Closes #17650

For users importing the @carbon/web-components package and using webpack, there is an error appearing - mandating the specification of the extension in the icon imports.

Changelog

Changed

  • add .js extensions to all the icon imports in the @carbon/web-components component files
  • add .js extension to the spread.js file that is included in all exported icon files

Testing / Reviewing

  • open example folder provided by adopter - I already added and linked the package tarball with the fix example-with-fix.zip
  • ensure when running npm install & npm run build there are no errors appearing

@annawen1 annawen1 requested a review from a team as a code owner October 21, 2024 15:39
@annawen1 annawen1 added the package: @carbon/web-components @carbon/web-components label Oct 21, 2024
Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 3f46136
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/671675a94d8788000804d01f
😎 Deploy Preview https://deploy-preview-17818--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 3f46136
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/671675a9bdab330008e9b958
😎 Deploy Preview https://deploy-preview-17818--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 3f46136
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/671675a9d148f200080613e7
😎 Deploy Preview https://deploy-preview-17818--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.15%. Comparing base (f2c4993) to head (3f46136).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17818   +/-   ##
=======================================
  Coverage   80.15%   80.15%           
=======================================
  Files         406      406           
  Lines       14011    14011           
  Branches     4332     4332           
=======================================
  Hits        11231    11231           
  Misses       2614     2614           
  Partials      166      166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@ariellalgilmore ariellalgilmore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@annawen1 annawen1 added this pull request to the merge queue Oct 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 21, 2024
Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@annawen1 annawen1 added this pull request to the merge queue Oct 21, 2024
Merged via the queue into carbon-design-system:main with commit 203c3b9 Oct 21, 2024
26 of 27 checks passed
@annawen1 annawen1 deleted the fix/wc-specify-extensions branch October 21, 2024 19:41
annawen1 added a commit to annawen1/carbon that referenced this pull request Oct 22, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2024
* chore: rename ai slug to ai label

* chore: rename to ai-label

* chore: rename slug example to ai-label

* chore: add ai label to form group stories

* chore: rename handle slug slot change methods

* chore: all stories shifted

* fix: fix radio-button with ai-label

* fix: modal ai-label styles

* chore: rename test files to ai-label

* chore: add space between AI and Label in docs

* chore: undo changes to tearsheet and side-panel

* chore: keep slug component as deprecated

* chore: restore readme

* fix: specify js extensions for icon imports (#17818)

* chore: add extensions to icons in stories

* fix: show actions for playground and datatable sort

* fix: catch both slug and ai-label in event handlers
@carbon-automation
Copy link
Contributor

Hey there! v11.69.0 was just released that references this issue/PR.

irfadkp pushed a commit to irfadkp/carbon that referenced this pull request Oct 24, 2024
…ign-system#17739)

* chore: rename ai slug to ai label

* chore: rename to ai-label

* chore: rename slug example to ai-label

* chore: add ai label to form group stories

* chore: rename handle slug slot change methods

* chore: all stories shifted

* fix: fix radio-button with ai-label

* fix: modal ai-label styles

* chore: rename test files to ai-label

* chore: add space between AI and Label in docs

* chore: undo changes to tearsheet and side-panel

* chore: keep slug component as deprecated

* chore: restore readme

* fix: specify js extensions for icon imports (carbon-design-system#17818)

* chore: add extensions to icons in stories

* fix: show actions for playground and datatable sort

* fix: catch both slug and ai-label in event handlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants