Edit:
I tried to go to another page in my application, and instead I got this error: Uncaught Error: Assertion Failed: TypeError: Cannot read property 'Mixin' of undefined . I traced it to this line of code: __exports__["default"] = DS.Model.extend(Ember.Validations.Mixin, { which uses Ember Validations. I suspect that this is where the problem arises. __exports__["default"] = DS.Model.extend(Ember.Validations.Mixin, { anyone had problems with Ember Validation when updating Handlebars?
Original post:
I am having problems updating Ember to 1.9.1. In particular, I believe that this is not a compilation of my templates in a way that is compatible with Handlebars 2.0. I realized this was a common problem, but the only solution that worked was to use the Ember canary, not 1.9.1. Since this is not an option, I need to find a way to get Handlebars 2.0 to play well with my updated application.
When I launch my application, my console shows an error: Uncaught Error: Unknown template object: function on this part of handlebars.js:
if (!templateSpec || !templateSpec.main) { throw new Exception('Unknown template object: ' + typeof templateSpec); }
I updated my application by first switching to Ember CLI 0.1.5 from 0.1.2 using these instructions on the Ember CLI website. Then I tried to upgrade Ember to 1.9.1, first changing the version of Ember in my bower.js to 1.9.1, and then following these instructions to the official Ember website. This did not work, so I tried using the Ember rope ditch instead of 1.9.1, and it worked fine.
Here is my package.js:
{ "name": "appName", "version": "0.0.0", "private": true, "directories": { "doc": "doc", "test": "tests" }, "scripts": { "start": "ember server", "build": "ember build", "test": "ember test" }, "repository": "https://github.com/stefanpenner/ember-cli", "engines": { "node": ">= 0.10.0" }, "author": "", "license": "MIT", "devDependencies": { "body-parser": "^1.2.0", "broccoli-asset-rev": "^2.0.0", "broccoli-merge-trees": "^0.1.4", "broccoli-sass": "^0.2.1", "broccoli-static-compiler": "^0.1.4", "ember-cli": "0.1.5", "ember-cli-content-security-policy": "0.3.0", "ember-cli-dependency-checker": "0.0.7", "ember-cli-esnext": "0.1.1", "ember-cli-htmlbars": "^0.6.0", "ember-cli-ic-ajax": "0.1.1", "ember-cli-inject-live-reload": "^1.3.0", "ember-cli-qunit": "0.1.2", "ember-cli-simple-auth": "^0.6.7", "ember-cli-simple-auth-oauth2": "^0.6.7", "ember-cli-spinkit": "0.0.1", "ember-data": "1.0.0-beta.11", "ember-export-application-global": "^1.0.0", "express": "^4.8.5", "glob": "^4.0.5" } }
Here is my bower.js:
{ "name": "appName", "dependencies": { "handlebars": "2.0.0", "jquery": "^1.11.1", "ember": "1.9.1", "ember-data": "1.0.0-beta.12", "ember-resolver": "~0.1.11", "loader.js": "stefanpenner/loader.js#1.0.1", "ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3", "ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4", "ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2", "ember-qunit": "0.1.8", "ember-qunit-notifications": "0.0.4", "qunit": "~1.15.0", "ember-simple-auth": "0.6.7", "bootstrap-sass-official": "~3.3.1", "ember-validations": "http://builds.dockyard.com.s3.amazonaws.com/ember-validations/ember-validations-latest.js" } }
Any ideas? StackOverflow questions I might have missed?