I just got the same error, for me it was caused by including my layout template within <body>
, and specifying it as the layoutTemplate
option. To fix it, I removed the include from <body>
.
Here is a before and after of my code;
example.html (before)
<head>
<title>example</title>
</head>
<body>
{{>layout}}
</body>
<template name="layout">
<div>{{>yield}}</div>
</template>
example.js (before)
if(Meteor.isClient) {
Router.configure({
layoutTemplate: 'layout'
});
}
example.html (after)
<head>
<title>example</title>
</head>
<body>
</body>
<template name="layout">
<div>{{>yield}}</div>
</template>
example.js (after -- same as before)