{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10422","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10422/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10422/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10422/events","html_url":"https://github.com/emberjs/ember.js/issues/10422","id":57314537,"number":10422,"title":"ember 1.10, precompile, render function problems","user":{"login":"devlo","id":6026315,"avatar_url":"https://avatars.githubusercontent.com/u/6026315?v=3","gravatar_id":"","url":"https://api.github.com/users/devlo","html_url":"https://github.com/devlo","followers_url":"https://api.github.com/users/devlo/followers","following_url":"https://api.github.com/users/devlo/following{/other_user}","gists_url":"https://api.github.com/users/devlo/gists{/gist_id}","starred_url":"https://api.github.com/users/devlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlo/subscriptions","organizations_url":"https://api.github.com/users/devlo/orgs","repos_url":"https://api.github.com/users/devlo/repos","events_url":"https://api.github.com/users/devlo/events{/privacy}","received_events_url":"https://api.github.com/users/devlo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-11T13:20:02Z","updated_at":"2015-02-11T14:54:18Z","closed_at":"2015-02-11T14:54:18Z","body":"I have updated to ember 1.10 and htmlbars. I was using ember 1.7 and handlebars before and everything worked fine. I am compiling templates using grunt-ember-templates 0.5. In my index template i have 3 different renders: {{render 'templateName'}} \r\n\r\nFrom ember inspector:\r\n\r\nTransitioned into 'index'\r\nember.prod.js:47968 Transition #0: TRANSITION COMPLETE.\r\nember.prod.js:42627 Uncaught TypeError: object is not a function\r\n\r\n\r\nFrom what i see it's error inside render function, here:\r\n\r\n `if (useHTMLBars) {\r\n                        var env = Ember.merge(buildHTMLBarsDefaultEnv(), options);\r\n            output = template.render(this, env, buffer.innerContextualElement(), this._blockArguments);\r\n          } else {\r\n                        output = template(context, options);\r\n          }`\r\n\r\nExactly this line: output = template(context, options);\r\nWhich is weird because i am using htmlbars.\r\n\r\nThis is compiled index template (i have changed html into 'some html' so it will be more readable):\r\n\r\n`Ember.TEMPLATES[\"index\"] = Ember.HTMLBars.template({\"compiler\":[6,\">= 2.0.0-beta.1\"],\"main\":function(depth0,helpers,partials,data) {\r\n  var helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = '';\r\n  data.buffer.push(\"some html\");\r\n  data.buffer.push(escapeExpression(((helpers.render || (depth0 && depth0.render) || helperMissing).call(depth0, \"chart\", {\"name\":\"render\",\"hash\":{},\"hashTypes\":{},\"hashContexts\":{},\"types\":[\"ID\"],\"contexts\":[depth0],\"data\":data}))));\r\n  data.buffer.push(\"some html\");\r\n  data.buffer.push(escapeExpression(((helpers.render || (depth0 && depth0.render) || helperMissing).call(depth0, \"trans\", {\"name\":\"render\",\"hash\":{},\"hashTypes\":{},\"hashContexts\":{},\"types\":[\"ID\"],\"contexts\":[depth0],\"data\":data}))));\r\n  data.buffer.push(\"some html\");\r\n  data.buffer.push(escapeExpression(((helpers.render || (depth0 && depth0.render) || helperMissing).call(depth0, \"addr\", {\"name\":\"render\",\"hash\":{},\"hashTypes\":{},\"hashContexts\":{},\"types\":[\"ID\"],\"contexts\":[depth0],\"data\":data}))));\r\n  data.buffer.push(\"\\n</div>\\n</div>\\n</div>\\n\");\r\n  return buffer;\r\n},\"useData\":true});`\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/73893516","html_url":"https://github.com/emberjs/ember.js/issues/10422#issuecomment-73893516","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10422","id":73893516,"user":{"login":"devlo","id":6026315,"avatar_url":"https://avatars.githubusercontent.com/u/6026315?v=3","gravatar_id":"","url":"https://api.github.com/users/devlo","html_url":"https://github.com/devlo","followers_url":"https://api.github.com/users/devlo/followers","following_url":"https://api.github.com/users/devlo/following{/other_user}","gists_url":"https://api.github.com/users/devlo/gists{/gist_id}","starred_url":"https://api.github.com/users/devlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlo/subscriptions","organizations_url":"https://api.github.com/users/devlo/orgs","repos_url":"https://api.github.com/users/devlo/repos","events_url":"https://api.github.com/users/devlo/events{/privacy}","received_events_url":"https://api.github.com/users/devlo/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T14:54:17Z","updated_at":"2015-02-11T14:54:17Z","body":"@rwjblue \r\nThank you!\r\nFollowing what you wrote i found what was wrong.. \r\n\r\n\"IMPORTANT: These options must both be specified, or neither will take effect.\"\r\n\r\nI only used templateCompilerPath but not handlebarsPath that's why it didn't work."}}