Results 1 to 6 of 6

Thread: Doc Error? or Sencha CMD not making Main.js?

    You found a bug! We've classified it as DOCS-425 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default Doc Error? or Sencha CMD not making Main.js?

    I'm currently following along on the Tutorials documentation: Sample Login App ( http://docs.sencha.com/extjs/6.5.0/g...login_app.html )

    At the beginning of Step 2, there's a reference to a CMD-generated "Main.js" file. I'm not seeing that file after my application creation.

    Should that file still be created by CMD or has it been removed over time? It is referenced 6 more times on that page.

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--,

    It should be there but if you created a universal app (i.e. omitted the -classic / -modern flag) it would be in the toolkit specific folder (i.e. classic/src/view/main/Main.js).

    Let me know if this helps.

    Best!
    Bryan

  3. #3

    Default

    That is exactly what I did. Thank you for the answer, and for knowing it all well enough to even know that.

    But if I may continue this thread for what could still be a documentation bug report...

    Under Step 6 (http://docs.sencha.com/extjs/6.5.0/g...application_js), below the sample code, there is the explanations.

    There is a segment on "requires". Not only does the url-page link next to "requires" point to the wrong part of the page, I believe this "requires" section is explaining code that is missing in the sample code, just above it.

  4. #4
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    I see what you mean about the url-page link, looks like it just needs a unique identifier to differentiate the two. For the requires "code" side, do you mean it's showing the code in the docs but just not on your local example?

    Bryan

  5. #5
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Also created a docs bug for the url-page link and attached to your thread.

  6. #6

    Default

    The sample code for ( http://docs.sencha.com/extjs/6.5.0/g...application_js ) is shown, including the "stores" shown for usefulness, but there's not "requires" area, but below that sample code, where it describes all of the code in the given sample, there is mention of a "requires" area. It mentions two requires, but it isn't given in the sample.

    Perhaps it should be?

    Ext.define('TutorialApp.Application', {
    extend: 'Ext.app.Application',

    name: 'TutorialApp',

    // The following "requires" is perhaps missing from the given sample code.
    requires: [
    'TutorialApp.view.main.Main',
    'TutorialApp.view.login.Login'
    ],

    launch: function() {
    {...}
    });

Similar Threads

  1. Replies: 2
    Last Post: 29 Jan 2014, 10:28 PM
  2. Getting Error in PhoneGap [Ext.Loader] Failed loading 'app/view/Main.js'
    By FabianWilliams in forum Sencha Touch 2.x: Q&A
    Replies: 12
    Last Post: 3 Oct 2013, 4:22 AM
  3. [FIXED] [4.0.7] Error when making Ext.Img resizable
    By iznogood in forum Ext:Bugs
    Replies: 1
    Last Post: 28 Nov 2011, 12:57 PM
  4. Bug on the main page of sencha.com
    By Mycoding in forum Community Discussion
    Replies: 0
    Last Post: 28 Oct 2010, 8:28 PM

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
  •