-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Ability to try/catch <svelte:component>
? (Was: Dynamically imported component with immediate exception produces unrecoverable error or silence)
#7274
Comments
I am thinking about the issue a little bit more, and I guess the problem essentially boils down to this question: Is it possible to try/catch the <!-- can we try/catch this? -->
<svelte:component this={Some}/> Thanks. |
<svelte:component>
? (Was: Dynamically imported component with immediate exception produces unrecoverable error or silence)
Is this same as #3733 ? |
Maybe I'm missing something, but from the REPL alone I don't see any issue? I get the same error in the console regardless if I use dynamic imports or if I don't use Your REPL gives me this:If I remove
|
@Prinzhorn Alex, thank you for looking into this. Hm... although trying, I am not able to reproduce the simplified case with the silence I was talking about above. Which gives the suspicion that the actual problem might be located elsewhere... (between the chair and the screen most likely) Just to explain, as said, this is the only thing I’m getting (cropped the noise): where the Anyway, thank you again for your time. |
Describe the bug
Dynamic imports used with
<svelte:component>
with immediate errors are causing hard to debug issues.In HMR development the
Unrecoverable error in <Xyz>: next update will trigger a full reload
is the best clue I got, sometimes no console output at all (weirdly after page hard reload). In production build just silence. But for both always fatal, uncaught exception like behavior.Big thank you for your great work!
Reproduction
https://svelte.dev/repl/1d8b9883e9884b33beda6c9c4e4fba81?version=3.46.4
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: