How To Fix The “Model With Name Does Not Exist” Error In Sencha

There are many possible culprits that gets this error.

1) In my case, the problem lay in my model file where the field names specified did not have a comma after each one of them.

Instead of

my file contained this

The comma at the end of each line was missing. It took me a half day to realize these were missing so make sure you double check your model class files for this.

2) Another may be how you use the model class inside a store. It should be the model class name with the package name included.

3) If you define model classes in the app, make sure that you declare them in the app.js file.

So far, these three are the mistakes that I encountered when I was starting with Sencha. There may be others but the main cause of all these is missing characters ;).

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *