Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: "requires" silently fails

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #21

    Default

    Quote Originally Posted by LesJ View Post
    How are you building your apps if you are not using Sencha Cmd? By hand?
    I started out with

    Code:
    $ git clone https://github.com/lucassus/extjs4-account-manager.git

  2. #22
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    I'm going to open a ticket to discuss this internally.
    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

  3. #23
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    Quote Originally Posted by Tomas Pospisek View Post
    I started out with

    Code:
    $ git clone https://github.com/lucassus/extjs4-account-manager.git
    Why would this be better compared to Sencha Cmd?

  4. #24

    Default

    Quote Originally Posted by LesJ View Post
    Why would this be better compared to Sencha Cmd?
    Have a look at what extjs4-account-manager is. I think then you'll be able to reply to that very question.

  5. #25
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    How are you building your apps if you are not using Sencha Cmd? By hand?
    How were people building web apps before the almighty Sencha Cmd existed?

    Again, googling these errors reveals there are tons of questions where user has no clue what's going on if there's an error with Ext.Loader, or Ext.create. This means countless hours wasted for the new user and for the Ext support guys. With Ext.create('foo') you at least get a cryptic message, with an Ext.Loader typo you get a white page and empty console (no 404). Let's fix both.


    http://www.sencha.com/forum/showthre...-first-example
    http://www.sencha.com/forum/showthre...g-a-form-panel
    http://www.sencha.com/forum/showthre...-a-constructor

    http://www.sencha.com/forum/showthre...nstructor-quot

    http://www.sencha.com/forum/showthre...g-a-form-panel

    http://stackoverflow.com/questions/9...-a-constructor

    http://stackoverflow.com/questions/8...structor-error

    http://www.yulebiao.com/questions/96...-a-constructor

    http://ext.ensible.com/forum/viewtop...t=610&start=10
    http://www.sencha.com/forum/showthre...itecture-Guide

  6. #26
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    Quote Originally Posted by mankz View Post
    How were people building web apps before the almighty Sencha Cmd existed?
    mankz,

    You didn't answer my question. Let me explain (more visually) why it's a good idea to use Sencha Cmd.

    Let's say over many months you created a large Ext JS application containing many custom classes, but you did NOT use Ext charts (because you had no need for it or you used some other charting package).

    Sencha Cmd is smart and it will not include any Ext JS charting code in your final JS file ready for deployment. How would you accomplish this on your own? There's no easy way to extract only what you need from Ext JS w/o using Sencha Cmd.

    This was the biggest complain that developers had about Ext JS 3 that it's so monolithic.

    So, you will be downloading a lot lof code that you don't need. Of course, there will be a performance penalty - slower initial load time.

    If you use Sencha Cmd, you just enter three words 'sencha app build', and this will build the application w/o the code that you don't need.

  7. #27
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    This thread has nothing to do with if Cmd is right for you or not. Sencha Cmd is a brilliant tool and will help lots of people. Though it should _not_ be a requirement to get started with Ext JS. Let's stick to the thread topic, which is about missing error messages.

  8. #28
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    Quote Originally Posted by mankz View Post
    This thread has nothing to do with if Cmd is right for you or not. Sencha Cmd is a brilliant tool and will help lots of people. Though it should _not_ be a requirement to get started with Ext JS. Let's stick to the thread topic, which is about missing error messages.
    I'm going to strongly disagree with you, mankz. With due respect, the approach that you are using is not appropriate or sustainable. -1 on Sencha Cmd from an experienced developer is puzzling.

    Going forward the Ext JS code base will only grow bigger. More packages will be addded and the existing packages will contain more code, so downloading the entire framework will not work.

    IMO Sencha Cmd is a must, and it should be a starting point when learning Ext JS or working with Ext JS applications. This should be emphasized in the documentation as well.

    I'd like to point out (again) that Tomas would be seeing helpful error messages if he were using Sencha Cmd.

  9. #29
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Sencha Cmd is recommended and I would always recommend using it but it's not required to use Ext JS. Just like MVC, I'd always recommend it but it's not required to use it.
    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

  10. #30
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    Let's agree to disagree and let's repeat and summarize: this thread is not about how experienced developers should build their apps. It's about

    1. Saving time (and frustration) for new users
    1.5 Saving time for the Ext support team.
    2. Making sure new users stay in the community and don't loose faith and switch to Kendo, AngularJS, jQuery or some other piece of cool tech due to the learning curve being too steep (which it will be if Cmd is a prerequisite).

    Well worth a few bytes in my book (we have several such sanity checks in our scheduling components btw).

    Code:
    if (Ext.versions.extjs.isLessThan(MIN_EXT_VERSION)) {
            alert('The Ext JS version you are using needs to be updated to at least ' + MIN_EXT_VERSION);
        }
     if (!resourceStore) {
                Ext.Error.raise("You must specify a resourceStore config");
            }
    
            if (!this.eventStore) {
                Ext.Error.raise("You must specify an eventStore config");
            }

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

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