Help - For Comprehension with if conditional statements liveview 0.17.6 or higher

Updated liveview from 0.17.5 to 0.17.9, the for comprehension not working properly.
The following code is working

<%= for x <- 100..120 do %>
    <%= for i <- 1..6 do %>
            <%= i + x %>
    <% end %> 
<% end %>

However, this one is not working:

<%= for x <- 100..120 do %>
    <%= for i <- 1..6 do %>
           <%= if i > 2 do %>
              <%= i + x %>
           <% else %>
              <%= i + x %>
           <% end %>
    <% end %> 
<% end %>

And console log:

Uncaught TypeError: Cannot read properties of undefined (reading '0') rendered.js:149 
    at Rendered.templateStatic (rendered.js:149:14)
    at Rendered.toOutputBuffer (rendered.js:158:20)
    at Rendered.dynamicToBuffer (rendered.js:186:12)
    at Rendered.comprehensionToBuffer (rendered.js:176:14)
    at Rendered.toOutputBuffer (rendered.js:156:41)
    at Rendered.dynamicToBuffer (rendered.js:186:12)
    at Rendered.comprehensionToBuffer (rendered.js:176:14)
    at Rendered.toOutputBuffer (rendered.js:156:41)
    at Rendered.dynamicToBuffer (rendered.js:186:12)
    at Rendered.toOutputBuffer (rendered.js:162:12)

and the js 149:
  templateStatic(part, templates){
    if(typeof (part) === "number") {
      **return templates[part]** (<-line 149)
    } else {
      return part
    }
  }

Any idea? Thanks

This to me sounds like a bug, I’d consider filing an issue on the Phoenix project.

Thank you. I might file an issue later.

I filed an issue on the LiveView project and got help from josevalim (nice). After removing the old node_folder and set es2016 to es2017 for esbuild (Alpinejs issue), works well…