-
-
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
[svelte 5] I need to console.log certain imports or I get a ReferenceError at runtime #12344
Comments
I have an open-pr where this issue happens: danielo515/obsidian-modal-form#300 |
My guess: This has to do with |
That is a good guess. However, I already updated to latest svelte-preprocess (6.0.1) and |
See my updated comment: You need to enable |
Oh, true. How could I overlooked that? I read the migration guide (I mean, the 3 bullet points!) |
Wow, that raises 50 compile time errors, while keeping the same runtime ones. Let's see if fixing those I get rid of the problem |
That fixed the problem. Thank! |
Describe the bug
I am porting a Obsidian plugin to Svelte 5.
For some weird reason, some of my imported components, and even some third party dependencies are (I suppose) being removed by the compiler. I need to console.log them in order to not get runtime errors.
Reproduction
Logs
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: