Skip to content

Migrate our usage of internal API get_current_component to other alternative #471

Open
@BeeMargarida

Description

@BeeMargarida

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

Type definitions for svelte/internal were removed for svelte 4: https://svelte.dev/docs/v4-migration-guide#other-breaking-changes, sveltejs/svelte#9189

We are using get_current_component, which is an internal method. We should find another solution for this.

In which browser(s) did the problem occur?

Firefox

Steps To Reproduce

  1. Install codebase using svelte>=4
  2. Check TS errors when importing get_current_component in the codebase

Do you know how to fix the issue

Yes

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Relevant Assets

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions