You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!doctype html /> is not a valid jsx tag, so it throws these syntax errors. I think the best solution would be to check inside svelte2tsx if such a string exists at the start of the document and just remove it during conversion to jsx, using a regex that checks "is there a tag that begins with <!doctype in the beginning".
Describe the bug
<!doctype html>
shows errors. Looks related to #143.To Reproduce
Removing the doctype fixes the problem. I also tried
<!doctype html>
, but auto-formatting inserts<!doctype html />
anyway.Expected behavior
No errors. Seems like it's fixed in svelte: sveltejs/svelte#336
I wasn't able to reproduce it in the Svelte REPL (I got a different error), but I think this should work with SSR.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: