Monday, 15 April 2013

javascript - Ember 1.10 - Upgrade Error - template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead? -


I am in the process of upgrading Amber 1.8. We are using incremental and my versions and the dependencies are as follows:

  "ember": "~ 1.10.0", "ember-data": "1.0.0-beta.14 expected "," amber-resolver ":" ~ 0.1.11 "," amber-legalization-Nosili ":" ~ 1.4.2 " 

assets Amber served by a railroad app , And my application.js looks something like this:

  // Required jquery // Required jquery-ui / sortable // Bootstrap // requires / select / dist / Js / standalone / selectize // / filesize / lib / filesize // require / moment / Is required Shn is // required ember-template-compiler is // = require requires ember // ember-data // = required ember-validations-nocli / dist / Ember-validations.js  

Now, when I go to the root route of my Amber App, I get the following error:

  Error: Taboo failed: The template must be a function. Did you have to call Ember.Handlebars.compile ("...") or specify templateName instead? Object on error.EmberError (http: // localhost: 7000 / assets / admin-35a600b33b51fec0abd608728144b875.js: 41133: 23) Ember.assert (http: // localhost: 7000 / assets / admin- 35A600b33b51fec0abd608728144b875.js: 32532: 15) on CoreView.extend.render (http: // localhost: 7000 / assets / admin-35a600b33b51fec0abd608728144b875.js: 73318: 19 ) On EmberRenderer_createElement [as the form of making] Element (http: // localhost: 7000 / property / admin -35a 600b 33b 51-fa-0bd 608728144 b875.js: 68 9 63: 16) in amberendrator. Renderer_Redrettree [as the RedRattery] (http: // localhost: 7000 / assets / admin-35a600b33b51fec0abd608728144b875.js: 37456: 24) AmberRenderdated Deliverity (http: // localhost: 7000 / assets / admin-35a 600b33b51fec0abd608728144b875.js: 37533 : 16) on Queue.invokeWithOnError (http: // localhost: 7000 / assets / admin -35 a 600b33b51fec0abd608728144b875.js: 29455: 20) on Object.Queue.flush (http: // localhost: 7000 / assets / admin-35a600b33b51fec0abd608728144b875 .jsociety951113) On object. Defrank ActionQuiz.flas (http: // localhost: 7000 / as ts / admin-35a600b33b51fec0abd608728144b875.js: 29316: 1 9)  

The problem is, stack trace does not say which How can I get the source of this problem by any idea of ​​a template or an error file? Stacktrace is no different than saying that my template is not wrong. I am not using raucous to compile anything, and we are not using amber-CLI.

Any help or suggestions? Thanks!

The only problem I have is my version of amber-templates-compiler 1.9.0.

I found a lone alone compiler who used to work for me Em-hbs-precompiler

Not like the way I want to go but I hope someone suffers With better solution will be found.


No comments:

Post a Comment