Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Sencha fiddle errors when running application

  1. #1
    Sencha User
    Join Date
    Oct 2016
    Posts
    27
    Answers
    1
    Vote Rating
    1
      0  

    Default Answered: Sencha fiddle errors when running application

    Hello,

    I have the following fiddle: https://fiddle.sencha.com/#fiddle/1ucp&view/editor. When pressing run, in the dev console the following errors appear (see the attached image). Note that the behaviour is intermitent: sometimes the application works and sometimes it doesnt. Why I'm receiving this errors and how to correct them?


    Edit(errors in the dev console):

    ext-modern-all-debug.js:1283
    GET https://fiddle.sencha.com/local/14930400840963036547/Ext/grid/Panel.js?_dc=1493040087521
    [Ext.Loader] Some requested files failed to load.

    ext-modern-all-debug.js:1283
    GET https://fiddle.sencha.com/local/14930400840963036547/Ext/toolbar/Toolbar.js?_dc=1493040087824
    [Ext.Loader] Some requested files failed to load.

    Thank you,
    Florin
    Attached Images Attached Images

  2. Your fiddle is marked to run with 6.2.1 Modern Triton, the modern toolkit does not have an Ext.grid.Panel (it's Ext.grid.Grid) or an Ext.toolbar.Toolbar (it's Ext.Toolbar).

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,134
    Answers
    3982
    Vote Rating
    1429
      0  

    Default

    Your fiddle is marked to run with 6.2.1 Modern Triton, the modern toolkit does not have an Ext.grid.Panel (it's Ext.grid.Grid) or an Ext.toolbar.Toolbar (it's Ext.Toolbar).
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Oct 2016
    Posts
    27
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Thank you. Now I understood better how to use the fiddel.

  5. #4
    Sencha User
    Join Date
    Apr 2017
    Posts
    33
    Vote Rating
    0
      0  

    Default

    How do you find this ? A novice fiddle and to latest version fiddle how can troubleshoot this kind of situation ? Any ideas ?

  6. #5
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,134
    Answers
    3982
    Vote Rating
    1429
      0  

    Default

    The way I debugged it is I saw the errors and looked at what framework you were running. Once I saw it was modern toolkit, I knew instantly that modern doesn't have those classes. I guess it's just knowing what you are using and what that has.

    I assume you are new to Ext JS and the two toolkits. Fiddle isn't aimed to be a full development editor/IDE just like other fiddle sites are not so don't expect it to have tons of tools to point out what you are doing wrong. Ask here in the forums and someone will hopefully help point out what's going on if you are relying on fiddle.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  7. #6
    Sencha User
    Join Date
    Apr 2017
    Posts
    33
    Vote Rating
    0
      0  

    Default

    This fiddle shows an error. How can we trace please ? The error frequently raising is it because of version issue ?

    https://fiddle.sencha.com/#view/editor&fiddle/1uis

    Attachment 56214

    Why all the errors pointing out ext-all-debug.js ? Give me a help please ? This error raising only if I use new version but old version no panel/viewport. Thanks

  8. #7
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,134
    Answers
    3982
    Vote Rating
    1429
      0  

    Default

    This is due to this code:

    Code:
    Ext.application({
        name: 'School',
        mainView: 'Assets.view.Viewport'
    });
    Two things:
    1. App name is School but you are loading Assets, where are you telling Ext JS where Assets namespace resolves to?
    2. You will need to add Assets.view.Viewport to the requries array in Ext.application so that Ext JS will attept to load that class. The mainView config does not require the class.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  9. #8
    Sencha User
    Join Date
    Apr 2017
    Posts
    33
    Vote Rating
    0
      0  

    Default

    1. But when we look at the fiddle Assets is the folder at the top right ? Then how can we leave that and mention other folders ? Initially I had it as School only then changed in order to test whether Assets may be considered and got the same.

    2. I have corrected to add requires [] array as below. But Assets is root folder and view comes under Assets right ?

    Ext.application({
    name: 'School',
    requires: [
    'Assets.view.Viewport'],
    });


    I have changed to 'School.view.Viewport' to get correct myself but we get keep running window.

  10. #9
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,134
    Answers
    3982
    Vote Rating
    1429
      0  

    Default

    Fiddle doesn't inspect your source like Sencha Cmd does since Cmd is a command line tool, it's not available to a web app. Therefore, you have to tell Ext JS about it.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  11. #10
    Sencha Premium Member richardvd's Avatar
    Join Date
    Jun 2011
    Location
    NL
    Posts
    195
    Answers
    16
    Vote Rating
    59
      0  

    Default

    Your view classes were in the wrong directory level (/view instead of /app/view). Fixed Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/1ulo

    I can recommend these books:

    Sencha Ext JS 6 Bootcamp in a Book: Classic Toolkit Edition by Steve Drucker: https://www.amazon.com/Sencha-Ext-JS.../dp/1539406660

    Ext JS 6: Getting Started by Stuart Ashworth: http://www.extjs6gettingstarted.com

Page 1 of 2 12 LastLast

Similar Threads

  1. Sencha fiddle often stalls while Running or Saving a fiddle.
    By mohammedsardar in forum Sencha Fiddle
    Replies: 1
    Last Post: 20 Apr 2017, 4:25 AM
  2. Sencha application not running with latest chrome
    By vpappula in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 9 Jun 2015, 10:13 PM
  3. Certificate errors on fiddle.sencha.com
    By medoni in forum Sencha Fiddle
    Replies: 0
    Last Post: 8 Apr 2015, 9:41 PM
  4. Sencha application is not running on Android Emulator
    By thota in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 17 Aug 2012, 5:46 AM
  5. Replies: 2
    Last Post: 31 Jul 2012, 1:28 PM

Posting Permissions

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