Broccoli issues with HTML comments

Hi,

I’ve started learning Ember an hour ago. After following the quickstart guide I’m trying to use it on my current website. So I copied the HTML code into the application.hbs template, and I keep having errors similar to this: “Closing tag ul (on line 45) without an open tag.

Here’s what this part of the code looks like:

       <nav id="right_menu" class="d-none d-md-block">
			<ul>
				<li><a href="#"><i class="fas fa-search"></i></a></li>
				<li><a href="#"><i class="fas fa-shopping-cart"></i></a></li>
  <!--			<li><a href="#">À propos</a></li>
				<li><a href="#">Contact</a></li> -->
			</ul>
		</nav>

Now as soon as I remove the commented part, the error disappears, and this happens in many other parts of the code containing commented sections. I’m kind of confused now, is there any way to fix this?

Thanks

I found the issue: I added the head section to the template, which was causing the bug.

1 Like