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
(Phoenix.LiveView.HTMLTokenizer.ParseError) expected tag name on JS code #365
Comments
This has been fixed in more recent LiveView versions, so please update! |
@josevalim I believe I'm using the latest version |
No phoenix_html, phoenix_live_view. It is a LiveView issue :) |
@josevalim We just got hit by this as we are converting our I'm realizing now that I might have misinterpreted the Changelog? The sentence "LEEx templates (~L sigil or .leex extension) are no longer supported.", does it apply only to "Stateful LiveComponents", and only the them, i.e. LiveViews can still be |
It applies only to Stateful LiveComponents and only the root template. So you can have a LiveComponent with ~H on the root but still calls a function or a regular component that returns ~L. |
Thanks. "only the root template" => right, so that means all LiveView (by which I mean anything that So, would making a bug fix release for the 0.16.x line be tricky? |
Sorry, I mean "only root templates of LiveComponents". That was an inclusive "and". |
Code
Expected behaviour
The code should be compiled successfully. The code (both HTML and JS) is correct.
Actual behaviour
The compiler throws an error:
The text was updated successfully, but these errors were encountered: