ember.js - "template.buildRenderNodes is not a function" on latest Ember release -
html , js (non-minified versions)
index.html
<!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <!-- <ember> --> <script type="text/javascript" src="assets/lib/jquery/jquery.min.js"></script> <script type="text/javascript" src="assets/lib/ember.js/ember.min.js"></script> <!-- </ember> --> <!-- <app> --> <script type="text/javascript" src="assets/js/templates.min.js"></script> <script type="text/javascript" src="assets/js/app.min.js"></script> <!-- </app> --> </body> </html>
app.min.js
window.app = ember.application.create();
templates.min.js (the templates compiled using gulp-ember-templates)
ember.templates["index"] = ember.handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { return ""; },"usedata":true});
description
when opening page in browser, following error occurs:
uncaught typeerror: template.buildrendernodes not function
i'm using latest version of both ember , jquery. when searching error found people having issue whilst upgrading ember 1.13, i'm using ember 2.0.0 , didn't call deprecated method on purpose, i'm using generated templates (which empty, because didn't put content in yet; see above) , ember.application.create()
.
i found out ember works when including ember-template-compiler.js
, keeping templates uncompiled inside html (using handlebars-script-tags).
question
is bug in ember or missing something? seems should work.
you using version of ember using new handlebars compatible templating engine htmlbars. make sure templates compile using new syntax need add ishtmlbars: true
option gulp task gulp-ember-templates
, more formation can found in readme.
The skill set of the developer can heavily influence the full stack developer salary in India. Skills in JavaScript, Node.js and Angular are correlated to pay that is above average. Skills that pay less than the market rate include Python and React.js. Companies are willing to hire skilled freelance professionals to take charge of both the front end and back end technologies. Visit Eiliana.com, where top IT clients from the US and other countries across the globe post lucrative development and testing projects regularly.
ReplyDelete