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: unexpected undefined size of icon #4977

Closed
wants to merge 1 commit into from
Closed

Conversation

euaaaio
Copy link
Contributor

@euaaaio euaaaio commented Mar 14, 2024

Contribution checklist

Brief description

This bug is caused by a bug in sveltejs, but we have a workaround

Screencast

Screen.Recording.2024-03-14.at.23.29.46.mov

Checklist

  • - UI test added to added/changed functionality?
  • - Screenshot is added to PR if applicable ?
  • - Does a local formatting is applied (rush format)
  • - Does a local svelte-check is applied (rush svelte-check)
  • - Does a local UI tests are executed UI Testing
  • - Does the code work? Check whether function and logic are correct.
  • - Does Changelog.md is updated with changes?
  • - Does the translations are up to date?
  • - Does it well tested?
  • - Tested for Chrome.
  • - Tested for Safari.
  • - Go through the changed code looking for typos, TODOs, commented LOCs, debugging pieces of code, etc.
  • - Rebase your branch onto master and upstream branch
  • - Is there any redundant or duplicate code?
  • - Are required links are linked to PR?
  • - Does new code is well documented ?

Related issues

Resolves #4960

Contributor requirements

  • - Sign-off is provided. DCO
  • - GPG Signature is provided. GPG

View in Huly UBERF-6023

Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
@euaaaio euaaaio requested review from haiodo and ThetaDR March 14, 2024 20:38
@@ -34,12 +34,15 @@
$: url = isAsset(icon) ? getMetadata(toAsset(icon)) ?? 'https://anticrm.org/logo.svg' : ''

$: _fill = iconProps?.fill ?? fill

// workaround to prevent sveltejs bug in `svelte:component`: https://github.com/sveltejs/svelte/issues/9177
Copy link
Member

@aonnikov aonnikov Mar 15, 2024

Choose a reason for hiding this comment

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

This seems to be quite a major bug that might affect not only icons but potentially all places where we use svelte:component. How we can ensure those are not affected?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, we need to check all places where use use svelte:component and address them until issue will be fixed.

Copy link
Member

Choose a reason for hiding this comment

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

Does svelte:self or svelte:fragment also affected?

Copy link
Member

Choose a reason for hiding this comment

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

I've just found sveltejs/svelte#10604, and we probable should update to
svelte@4.2.12 to address it instead.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, let's update to 4.2.12 and check if the issue is fixed.

Copy link
Member

Choose a reason for hiding this comment

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

I will update

@haiodo
Copy link
Member

haiodo commented Mar 15, 2024

Update to svelte helped, closing

@haiodo haiodo closed this Mar 15, 2024
@haiodo haiodo deleted the fix/UBERF-6002 branch March 15, 2024 09:53
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.

Size is undefined inside class for icon
3 participants