Results 1 to 3 of 3

Thread: How to make cmd build/include models? (app watch works, app build fails)

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    151
    Vote Rating
    2
      0  

    Default How to make cmd build/include models? (app watch works, app build fails)

    Hi,

    When I run "sencha app watch" my application works perfectly, but when I build the compiled package have issues loading some models.

    I presume I'm not handling the "required" properties correctly and that it's an easy fix, but I can't figure it out. So any help is greatly appreciated


    What Chrome says
    Screen Shot 2018-07-13 at 10.11.31.png

    My files
    Screen Shot 2018-07-13 at 10.13.02.png

    app.js
    Screen Shot 2018-07-13 at 10.13.19.png

    application.js
    Screen Shot 2018-07-13 at 10.14.10.png


    Worth mentioning is that this is an old application that has been upgraded a few times, now it's running 6.2 gpl.

  2. #2
    Sencha Premium Member richardvd's Avatar
    Join Date
    Jun 2011
    Location
    NL
    Posts
    255
    Vote Rating
    71
      0  

    Default

    Why do you have model and store classes under the app/controller directory?

    Can you move the files in app/controller/model and app/controller/store to app/model and app/store​ respectively?

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    151
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by richardvd View Post
    Why do you have model and store classes under the app/controller directory?

    Can you move the files in app/controller/model and app/controller/store to app/model and app/store​ respectively?
    Wohoo!! Good hint, moved them and now it works!!

    Thanks a million, what a 2nd pair of eyes can do

Similar Threads

  1. Replies: 2
    Last Post: 19 Jul 2016, 1:09 AM
  2. Cmd production build fails, testing build works
    By bhutten in forum Sencha Cmd
    Replies: 5
    Last Post: 1 Jul 2015, 3:33 AM
  3. Build works, app fails
    By pkellner in forum Sencha Cmd
    Replies: 0
    Last Post: 27 Aug 2014, 9:25 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
  •