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: Change spread operation on Set iterator #49

Merged
merged 4 commits into from
May 29, 2024
Merged

Fix: Change spread operation on Set iterator #49

merged 4 commits into from
May 29, 2024

Conversation

cialese
Copy link
Collaborator

@cialese cialese commented May 28, 2024

Change spread operation on Set iterator to Array.from(...).
TS compiler doesn't recognize symbol iterator without polyfill, so it compiles the array incorrectly and breaks

This issue was mentioned in microsoft/TypeScript#8856.

@cialese cialese requested a review from osbornm as a code owner May 28, 2024 17:22
@cialese
Copy link
Collaborator Author

cialese commented May 28, 2024

To have a clear solution I may need to make changes in the ts.config like targeting to a newer version

Other way to fix this is using Babel iterableIsArray https://babeljs.io/docs/assumptions#iterableisarray.

Copy link

cloudflare-workers-and-pages bot commented May 28, 2024

Deploying hyphen-components with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8861cf4
Status:⚡️  Build in progress...

View logs

@cialese cialese linked an issue May 28, 2024 that may be closed by this pull request
@cialese
Copy link
Collaborator Author

cialese commented May 29, 2024

@nathanyoung could you check chromatic

@cialese cialese requested a review from nathanyoung May 29, 2024 15:04
@jaredwray jaredwray merged commit c46cd63 into main May 29, 2024
5 of 6 checks passed
@jaredwray jaredwray deleted the update/box branch May 29, 2024 19:06
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

Successfully merging this pull request may close these issues.

Box childGap not working in application
3 participants