I am in the process of upgrading an Ember 1.8 app to Ember 1.10. We're using bower and my versions and dependencies are the following:
"ember": "~1.10.0",
"ember-data": "1.0.0-beta.14",
"ember-resolver": "~0.1.11",
"ember-validations-nocli": "~1.4.2"
The Ember assets are served by a Rails app, and my application.js looks something like this:
//= require jquery
//= require jquery-ui/sortable
//= require bootstrap
//= require selectize/dist/js/standalone/selectize
//= require filesize/lib/filesize
//= require moment/moment
//= require ember-template-compiler
//= require ember
//= require ember-data
//= require ember-validations-nocli/dist/ember-validations.js
Now, when I go to the root route of my Ember app, I get the following error:
Error: Assertion Failed: template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?
at new Error (native)
at Error.EmberError (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:41133:23)
at Object.Ember.assert (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:32532:15)
at CoreView.extend.render (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:73318:19)
at EmberRenderer_createElement [as createElement] (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:68963:16)
at EmberRenderer.Renderer_renderTree [as renderTree] (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:37456:24)
at EmberRenderer.scheduledRenderTree (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:37533:16)
at Queue.invokeWithOnError (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:29455:20)
at Object.Queue.flush (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:29511:13)
at Object.DeferredActionQueues.flush (http://localhost:7000/assets/admin-35a600b33b51fec0abd608728144b875.js:29316:19)
The problem is, the stack trace doesn't say which template or in which file the error occurs. Any idea how I can find the source of this problem? The stacktrace isn't helpful at all, apart from saying that somewhere my template is incorrect. I'm not using grunt to compile anything, and we're not using Ember-CLI either.
Any help or suggestions? Thanks!