Results 1 to 5 of 5

Thread: [E] [Ext.Loader] Some requested files failed to load. in MVC structure

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Dec 2014
    Posts
    26
    Answers
    2

    Default Answered: [E] [Ext.Loader] Some requested files failed to load. in MVC structure

    Hi I tried to create a MVC project in sencha fiddle.

    After I click the run fiddle, the browser show me some error messages
    GET https://fiddle.sencha.com/Fiddle/sto...=1447733834495 404 (Not Found)
    [E] [Ext.Loader] Some requested files failed to load.
    Uncaught TypeError: Cannot read property 'isBufferedStore' of undefined


    How to fix this problem? Thanks

    my code as below and the fiddle
    app.js
    PHP Code:
    Ext.application({        
        
    name'Fiddle',        
        
    appFolder'app',        
        
    autoCreateViewporttrue,
        
    store: ['ListViewStore'],
        
    launch: function() {
        }    
    }); 
    Viewport.js
    PHP Code:
    Ext.define('Fiddle.view.Viewport', {        
    extend'Ext.container.Viewport',        
    layout'border',
        
    requires: ['Fiddle.view.ListView'],
        
    items: [{            
            
    region'center',            
            
    xtype'listview',        
        }]    
    }); 
    view
    PHP Code:
    Ext.define('Fiddle.view.ListView', {        
        
    extend'Ext.grid.Panel',        
        
    alias'widget.listview',        
        
    title'MVC Grid Sample',        
        
    store'ListViewStore',        
        
    columns: [            
            { 
    text'Name',  dataIndex'name' },            
            { 
    text'Email'dataIndex'email'flex},            
            { 
    text'Phone'dataIndex'phone' }        
        ],        
        
    height200,        
        
    width400,
        
    initComponent: function() {            
            var 
    me this;            
            
    me.callParent(arguments);
        }    
    }); 
    model
    PHP Code:
    Ext.define('Fiddle.model.ListViewModel', {        
        
    extend'Ext.data.Model',        
        
    fields: ['name''email''phone'],    
    }); 
    store
    PHP Code:
    Ext.define('Fiddle.store.ListViewStore', {        
        
    extend'Ext.data.Store',        
        
    model'Fiddle.model.ListViewModel',        
        
    data:{'items':[            
            { 
    'name''Lisa',  "email":"[email protected]",  "phone":"555-111-1224"  },            
            { 
    'name''Bart',  "email":"[email protected]",  "phone":"555-222-1234" },            
            { 
    'name''Homer'"email":"[email protected]",  "phone":"555-222-1244"  },            
            { 
    'name''Marge'"email":"[email protected]""phone":"555-222-1254"  }       
        ]},       
        
    proxy: {            
            
    type'memory',            
            
    reader: {                
                
    type'json',                
                
    rootProperty'items'            
            
    }        
        }    
    }); 
    controller
    PHP Code:
    Ext.define('Fiddle.controller.ListViewController', {        
        
    extend'Ext.app.Controller',
        
    stores: ['ListViewStore'],
        
    init: function() {            
            var 
    me this;                    
            
    me.control({                
                
    'listview': {                    
                    
    itemdblclickme.dbClickIconView                
               
    }            
            });        
        },            
        
    dbClickIconView: function(merecorditemindexe) {            
            
    console.log(record);        
        }
    }); 

  2. I got the solution. The store config miss 's' in app.js. It should be 'stores'
    Now it works and I have updated the fiddle.

    Thanks all.

  3. #2
    Sencha User
    Join Date
    Dec 2014
    Posts
    26
    Answers
    2

    Default

    I got the solution. The store config miss 's' in app.js. It should be 'stores'
    Now it works and I have updated the fiddle.

    Thanks all.

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Yep, that would cause problems. I'm glad it's working for you and thanks for following up here.

  5. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    It's also important to note that the files in fiddle are fake files, they do not live on any filesystem nor can you load them via any URL. This is important as if a class requires another class that is not yet loaded, Ext JS will try to load that required class via a URL. So in fiddle, don't use requires/uses/Ext.Loader.require or the like. app.js will be executed after all other JS fake files.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #5
    Sencha User razvanioan's Avatar
    Join Date
    Feb 2008
    Location
    Romania
    Posts
    140
    Answers
    4

    Default

    The sequence of the "files" it's also important !

    I had defined a Base and Actor models, and it was always throwing errors about missing Base.js until I have swapped the order of them in the resources panel: Base had to be first !
    ---
    Razvan Ioan ANASTASESCU
    Senior WEB Developer

Similar Threads

  1. Replies: 3
    Last Post: 12 Feb 2016, 7:37 AM
  2. Replies: 2
    Last Post: 30 Oct 2012, 7:05 PM
  3. Replies: 12
    Last Post: 12 Feb 2012, 4:41 AM
  4. Ext.ux.Loader: Load js/css Files Dynamically
    By mm_202 in forum Ext 3.x: User Extensions and Plugins
    Replies: 1
    Last Post: 24 Aug 2010, 6:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •