Usually this issue is caused by a missed <!-- /ko -->
closing tag.
Wrong:
<!-- ko text: someFunction() -->
Right:
<!-- ko text: someFunction() --><!-- /ko -->
Wrong:
<!-- ko template: 'someTemplate' -->
Right:
<!-- ko template: 'someTemplate' --><!-- /ko -->