0

i am new to sencha touch 2. while i was trying to instantiate after creating a blog view by following instructions from a tutorial.this error "Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget.blogpanel" appeared;

the code of blog.js is given below:


Ext.define('GS.view.blog',{
    extend:'Ext.navigation.View',

xtype: 'blog',

config:{
    title: 'Blog',
    iconCls: 'star',

    items:
    {
        xtype:'list',
        itemTpl:'{title}',
        store:
        {   
            autoLoad: true,
            fields:['title','author','content'],

            proxy:
            {
                type:'jsonp',
                url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',

                reader:
                {
                    type:'json',
                    rootProperty:'responseData.feed.entries',
                }
            }
        }
    }
}

});

amrit_neo
  • 1,759
  • 4
  • 19
  • 39
user1619865
  • 11
  • 1
  • 2

2 Answers2

1

You need to check in the Ext.application.views to see if your class has been added

Tuong Le
  • 18,533
  • 11
  • 50
  • 44
0

This is relative to this one Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: widget.

You need to check the Ext.Application's "views" array

Community
  • 1
  • 1
Yordis Prieto Lazo
  • 729
  • 12
  • 24
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Gabriel Mongeon Apr 16 '14 at 03:17
  • @GabrielMongeon I am very new using stackoverflow so good tip the next time I go to do that – Yordis Prieto Lazo Apr 18 '14 at 15:21