Hi everyone!
I am trying to use Ember Model with Ember App Kit , but I am getting the following error while the app renders:
Welcome to Ember.js
Sorry, Something went wrong
Cannot read property ‘find’ of undefined
TypeError: Cannot read property ‘find’ of undefined at exports.default.Ember.Route.extend.model (http://localhost:8000/assets/app.js:132:27) at superWrapper [as model] (http://localhost:8000/vendor/ember/ember.js:1292:16) at Ember.Route.Ember.Object.extend.deserialize (http://localhost:8000/vendor/ember/ember.js:36570:19) at http://localhost:8000/vendor/ember/ember.js:32972:57 at Router.async (http://localhost:8000/vendor/ember/ember.js:33464:19) at invokeResolver (http://localhost:8000/vendor/ember/ember.js:9646:9) at new Promise (http://localhost:8000/vendor/ember/ember.js:9632:9) at Router.async (http://localhost:8000/vendor/ember/ember.js:33463:16) at Object.HandlerInfo.runSharedModelHook (http://localhost:8000/vendor/ember/ember.js:32971:16) at Object.UnresolvedHandlerInfoByParam.getModel (http://localhost:8000/vendor/ember/ember.js:33058:19)
I first tried the awesome Ember CLI but had to abandon it as it is not yet suitable for a production app.
I have come across the following resources for using Ember Model:
- Ember Model + Ember CLI: GitHub - ebryn/ember-model-sample-app
- Ember Model + Ember Starter Kit : GitHub - embercasts/getting-started-with-ember-model: Source code for Embercast: "Getting started with Ember Model"
- Ember Model Introduction : Ember Model - Introduction - sensible.io Blog
Can anyone please point me to a sample app which uses Ember Model with Ember App Kit?
Thanks!