ember-script
ember-script copied to clipboard
Build error when using Ember >= 1.10
Just to notify others: a new Ember-cli project will use ember 1.10, and then ember build (or server) will fail with:
Cannot read property 'create' of undefined
TypeError: Cannot read property 'create' of undefined
at Object.
Setting bower ember version to 1.9.1 solves this problem.
I switched to https://github.com/kimroen/ember-cli-coffeescript, renamed all .em files to .coffee and now everything works fine with all the latest versions.
You are writing EmberScript in .coffee files and it's compiling correctly with that configuration?
Yep, I love coffeescript. I thought ember-script was a dialect of coffeescript but all my files (controllers etc) worked out of the box, even leaving the emberscript marker # (ember) in the code (I do not use that everywhere, so it probable is ignored).
This didn't work for me. Coffeescript doesn't recognize "~>"
@hlogmans if you still want to use EmberScript with Ember-cli I can propose temporary solution:
add it to package.json
"broccoli-ember-script": "git://github.com/kolybasov/broccoli-ember-script"
or
npm install kolybasov/broccoli-ember-script --save-dev
This worked great, as I cling to EmberScript until it sinks :)