-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
accessing get_current_component
#9189
Comments
|
@Conduitry I understand but still get_current_component is still very useful and I am sure I am not the only one using it (or I would not have found about it). |
You can call |
@j3rem1e thanks a lot ! indeed it works and fills my need! |
We use |
Hi,
Now moving on Svelte4, this stopped working. Thank you |
Use the new |
Hi,
Thank you very much! |
@Conduitry on the same note just realized i was also using |
Describe the bug
In svelte 3 we could use
get_current_component
by importing it fromsvelte/internal
Now in svelte 4 it gives the error
Cannot find module 'svelte/internal' or its corresponding type declarations
For a while i managed to fix this by using
"moduleResolution": "NodeNext",
in my tsconfig. But now with typescript 5, using"moduleResolution": "NodeNext",
forces me to use"module": "NodeNext",
which completely breaks my app.Is there any better way to import
get_current_component
in svelte 4?Reproduction
add
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: