I spent the last five days learning Ember (I read the ENTIRE documentation) and I am now ready to develop my app. I actually enjoyed reading the docs and love the Ember architecture and the forthcoming plans. I know JavaScript well and I have actually used Ember about three years ago to develop an application, which I developed considerably quicker than an identical app I developed in Backbone.js. So I am not entirely new to Ember, but I have forgotten nearly everything I learned about Ember three years ago.
Yesterday, as I was about to develop my app, I discovered that I have to learn Ember CLI, too. I thought to myself this should be no biggie. So I head over to the Ember CLI docs. I was disappointed and frustrated with the Ember CLI documentation. I found it quite weak, in need of some carbs and proteins, no doubt one of the most malnourished documentations I have seen.
Incidentally, I know many people complain about the Ember docs, but in my view, it is among the best documentations around, well written and well organized.
Suffice to say, I can’t start to build my Ember app because of errors and frustration with Ember CLI and Ember. Specially, there is no easy or straightforward way to get started with Ember CLI and HTMLBars and Ember 1.10 beta, or even Canary. I tried all the instructions and I keep getting one error after another.
I need a bit of help with this. I have not asked for help on a forum in over six years, mostly because I always find what I am looking for somewhere online. This new version of Ember with Ember CLI has humbled me; It kicked my butt, after dozens of hours trying to simply get the basic setup configured. This is one area where Meteor shines: you can install Meteor and start coding your Meteor app in mere seconds. I have used two days trying to get my Ember app set up before I can actually start writing code, and I am still stuck. I must admit that I do see the value in using Ember CLI, which I have no choice but to learn somehow.
Unfortunately, I can’t give up now. I have invested too much time learning Ember, and I am very short on time to complete my project. So I am not going to Meteor or Backbone or React, three technologies I am very familiar with. I am determined to use Ember on this particular project.
Here is what I have done to get just a basic Ember CLI/Ember Canary app running (I actually prefer to use Ember 1.10 beta 11):
-
ember init (inside directory)
-
bower install --save handlebars#~2.0.0
-
bower install --save ember#canary
-
bower install
-
npm uninstall --save-dev broccoli-ember-hbs-template-compiler (this was unnecessary for me, btw)
-
npm install --save-dev ember-cli-htmlbars
-
npm install
-
I added this bit to the config file:
EmberENV: { FEATURES: { ‘ember-htmlbars’: true } },
-
ember server
Frustrating Error in Console (app can’t load): “Uncaught TypeError: Cannot read property ‘pathname’ of undefined”
Installation errors during the steps above, though they appear to be inconsequential: “invalid watchman found, version: [2.9.8] did not satisfy [^3.0.0], falling back to NodeWatcher”
npm WARN unmet dependency /Todos_CLI/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/node_modules/regenerator/node_modules/commoner requires glob@‘~4.2.1’ but will load npm WARN unmet dependency /Todos_CLI/node_modules/glob, npm WARN unmet dependency which is version 4.3.1
I just simply want to use the latest version of Ember with HTMLBars to build my app. Can someone help?