Results 1 to 8 of 8

Thread: Unable to load files views for a particular folder structure

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default Unable to load files views for a particular folder structure

    Why can't bootstrap.js use the correct path to my view

    The js file is located here:

    app\classic\src\utils\commercial\form\CustomFieldSet.js

    But on application load it is looked up in the wrong location:

    network_snap.png

    As you can see, the url does not have utils.

    This seems to happen to all the views under that folder(app\classic\src\utils\commercial).

    So may be it is related to that folder structure, is it not?

    Fyi, this is not an issue with production build, it only occurs when running from app/

  2. #2
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    How do you build the development version?
    Have you tried the 'sencha app build -dev -uses' command.
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  3. #3
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    I tried that command and I still get the 404 response for the files.

  4. #4
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    Do you see a correct path in newly generated bootstrap.json?
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  5. #5
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    the bootstrap.json file does not have entries under paths for the missing files

  6. #6
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    Have you searched the missing files in bootstrap in editor or in browser? Sometimes the bootstrap.json is cached by browser.
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  7. #7
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    I checked the one from the editor.

  8. #8
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    I moved the (view) files back into app/app folder. bootstrap.json still has no entries under paths, BUT I no longer get 404 response for the affected views.
    I checked app.json, and toolkit is set to classic. So I am not sure why putting certain views under classic/src does not yield the correct behavior.

Similar Threads

  1. Unable to load the view files
    By herme063 in forum Ext JS 6.x Q&A
    Replies: 5
    Last Post: 6 Mar 2018, 5:41 PM
  2. Unable to use 2 views in single form
    By aakashgarg in forum Ext: Discussion
    Replies: 3
    Last Post: 15 Sep 2015, 11:48 PM
  3. EXTJS 4.2.1 Unable to render or load Views
    By rajuarien in forum Ext: Q&A
    Replies: 4
    Last Post: 1 Oct 2013, 6:35 AM
  4. Unable to recreate destroyed views
    By msuryanarayanan in forum Sencha Touch 2.x: Discussion
    Replies: 4
    Last Post: 3 Jul 2012, 10:33 AM

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
  •