Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8688255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:18:58+00:00 2026-06-12T23:18:58+00:00

HI im getting this error after executing my code. It says Uncaught typeError: Cannot

  • 0

HI im getting this error after executing my code. It says “Uncaught typeError: Cannot read property ‘isModel’ of undefined”.Im trying to display a list using my defined model named “model.login” and a store with dummy data.

Ext.Loader.setConfig({
enabled: true,
paths:{
    'model' : 'app/model',
    'store' : 'app/store'
}

});
Ext.application({
    name: 'GS',
    launch: function(){
        var myStore = null;
        Ext.require('model.login', function(){
            var login = Ext.create('model.login');
            myStore = new Ext.data.Store({
                model: login,
                data:[
                      {id:'09803' , issued_at: 'thisurl', instance_url:'https', signature:'token', access_token:'ser'}
                      ]
            });
        });
        this.viewport = new Ext.Panel({
            fullscreen: true,
            items:[
                   {
                       xtype: 'list',
                       itemTpl: '{id}',
                       store: myStore
                   }
                   ]
        });
    }

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:18:59+00:00Added an answer on June 12, 2026 at 11:18 pm

    Your call to create the viewport is happening before model.login is loaded and your store is created. Move the code to create the viewport into the callback for your Ext.require.

    Also, when passing a model into the store, you pass the model constructor, not an instance of it.

    Ext.application({
      name: 'GS',
      launch: function(){
        this.viewport = 
        var me = this;
        Ext.require('model.login', function(){                
          myStore = new Ext.data.Store({;
    
          me.viewport = new Ext.Panel({
            fullscreen: true,
            // You can pass a single item into item
            items:{
              xtype: 'list',
              itemTpl: '{id}',
              store: myStore
            }
          });
        });
      }
    });
    

    Note that there’s a better way to do this, you can tell the application what models to load and inline some of your calls to make it easier to read

    Ext.application({
      name: 'GS',
      models: 'login', // looks in GS.model.login
      launch: function(){
        me.viewport = new Ext.Panel({
          fullscreen: true,
          // You can pass a single item into item
          items:{
            xtype: 'list',
            itemTpl: '{id}',
            store: {
              model: 'model.login', // or GS.model.login without quotes
              data:[              
                {id:'09803' , issued_at: 'thisurl', instance_url:'https', signature:'token', access_token:'ser'}]
              }
           }
        });
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Keep getting this error after inserting a subdatasheet into a query and trying to
We are getting this error after upgrading to NHibernate 2.1. [QueryException: Cannot simultaneously fetch
I am getting this error after adding the libxml2.2.dylib file Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovies.app/funmovies (1
Simply put, I'm getting this error in the Product Admin of Magento after adding
After resolving issues with RIA installation here , I'm still getting this following error.
I´m getting this error while trying to commit to a svn repository: svn: MKACTIVITY
My App seems to be deploying correctly but I'm getting this error: * executing
OK I keep getting this error after about 3-4 minutes of churning: Timeout expired.
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.