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

Improved error message for @render containing invalid html #14334

Open
justingolden21 opened this issue Nov 17, 2024 · 1 comment
Open

Improved error message for @render containing invalid html #14334

justingolden21 opened this issue Nov 17, 2024 · 1 comment
Labels
awaiting submitter needs a reproduction, or clarification

Comments

@justingolden21
Copy link

justingolden21 commented Nov 17, 2024

Describe the problem

I spent hours debugging from errors about illegal invocation and node type and tried googling and searching svelte docs and found nothing. Below are the errors I got:

image

image

Describe the proposed solution

The error should be clear that the html node wrapping the @render call cannot wrap the contents of the @render, eg. a <p> containing a @render containing a <p>. The error messages were not clear at all and me and my friend who have used svelte for years and svelte 5 for months spent a long time debugging to figure this out. A simple, readable error message would have saved us many hours.

Importance

would make my life easier

@dummdidumm
Copy link
Member

Please provide a reproduction via a REPL link. I don't know what you did to get this error just from reading the description.

@dummdidumm dummdidumm added the awaiting submitter needs a reproduction, or clarification label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification
Projects
None yet
Development

No branches or pull requests

2 participants