title: Emberjs - Uncaught TypeError: Attempting to register an unknown factory: `store:main`
body: <p>I'm going through the tutorial for TodoMVC on Embers website and have gotten some errors along the way. The first was:</p>
  
  <pre><code>Uncaught Error: Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.
  </code></pre>
  
  <p>Which I solved by loading the mentioned script, but I then got an error:</p>
  
  <pre><code>Uncaught TypeError: Attempting to register an unknown factory: `store:main`
  </code></pre>
  
  <p>I've went through the Github issues (<a href="https://github.com/emberjs/ember.js/issues/2988" rel="nofollow">https://github.com/emberjs/ember.js/issues/2988</a>) for Ember and a solution was to include the following in the applications logic:</p>
  
  <pre><code>Todos.Store = DS.Store.extend();
  </code></pre>
  
  <p>But that caused the app to not load anymore (ironically without errors).</p>
  
  <p>I'm using Ember v1.10, has anyone ran into this before with this version and can help?</p>
  
  <p>I've installed via Bower:</p>
  
  <pre><code>  "dependencies": {
      "ember": "~1.10.0",
      "ember-data": "~0.0.14"
    }
  </code></pre>
  
  <p>And below is how my scripts are loaded:</p>
  
  <pre><code>&lt;script src="bower_components/jquery/dist/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="bower_components/handlebars/handlebars.min.js"&gt;&lt;/script&gt;
  &lt;script src="bower_components/ember/ember.debug.js"&gt;&lt;/script&gt;
  &lt;script src="bower_components/ember/ember-template-compiler.js"&gt;&lt;/script&gt;
  &lt;script src="bower_components/ember-data/ember-data.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/application.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Would appreciate the help on learning a JS framework</p>