Note that there are some explanatory texts on larger screens.

plurals
  1. POError in building Sencha Touch 2 application
    primarykey
    data
    text
    <p>While I am building my sencha touch 2 app using the command:- <strong>sencha app build production</strong></p> <p>but it throws an error:</p> <pre><code>[INFO] Deploying your application to /Applications/MAMP/htdocs/iPadapp/build/production [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies... [ERROR] Error thown from your application with message: TypeError: 'undefined' is not an object </code></pre> <p>I traced the error in my code . I found out , it is due to loading my list. Here is my code</p> <pre><code>Ext.define("myProject.store.Members",{ extend :'Ext.data.Store', requires:"Ext.data.proxy.LocalStorage", config: { model :"myProject.model.Member", sorters :'lastName', autoload:true, proxy: { type: 'localstorage', id : 'mainStore' } } }); </code></pre> <p>if I remove the line 'autoLoad: true' ( which breaks my application, then I can build the application. But my list is not loading. If I put it back the error repeats. I tried dynamically loading the list with load function , but it does not make any sense. </p> <p>And here is the model.js file I amusing.</p> <pre><code>Ext.define('myProject.model.Member', { extend: 'Ext.data.Model', config: { fields: [ 'index', 'email', 'firstname', 'lastname', 'phone', 'currentemployer', 'currenttitle', 'interestlevel', 'tcgroupNames', 'active', 'lastlogin', 'usertypedesc', 'recruiternotes', 'recruitercontact', 'addtype', 'usertypedesc', 'jobtitle', 'ipAddress', 'recruitersource', 'agentkeywords', { name: "created", type: 'date' }, 'recruiterprofileurl_linkedin', 'recruiterprofileurl_facebook' ] } }); </code></pre> <p>Any Help is appreciated</p> <p>Happy coding to all</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload