Marionette CompositeView: Uncaught ItemViewContainerMissingError: The specified `itemViewContainer` was not found:

backbone.js, marionette

Solution

In the past when I have run into this error, it was caused by rendering the view before it was shown onto the page.

Specifically, I reset the collection, which caused the view to re-render before I had displayed it on the page.

Problem

Have this weird error while using Marionette's CompositeView: ``` Marionette CompositeView: Uncaught ItemViewContainerMissingError: The specified `itemViewContainer` was not found: tbody ``` The element that is not found `tbody` is in the template. I've looked over the rest of my project and I've done the same thing over many times without a problem. It must be something small that I am missing. Is there a particular anti-pattern that is associated with this error? Thanks!

Original source