Results 1 to 6 of 6

Thread: Uncaught ReferenceError: SenchaInspector is not defined

  1. #1
    Sencha User
    Join Date
    Sep 2014
    Posts
    3

    Default Answered: Uncaught ReferenceError: SenchaInspector is not defined

    Trying to inspect a local application. Made the changes to the app.json and Application.js files per the tutorial. When I try and launch my application I get the Uncaught ReferenceError: SenchaInspector is not defined error. I have used both the "Machine Name" as well as "localhost" for my configuration. Here is the app.json and Application.js where I have added the code for SenchaInspector. I must be missing something here, but not sure what.

    app.json:

    PHP Code:
    "js": [ 
        { 
    "path""${framework.dir}/build/ext-all-rtl-debug.js" }, 
        { 
    "path""app.js""bundle"true }, 

        
    //Sencha Inspector code 
        

            
    // default settings 
            //"path" : "http://localhost:3000/inspector.js",
            // Or Use your Machine Name "path" : "http://MyComputerName:3000/inspector.js",
            // Or Use your IP Address //"path" : "http://123.456.78.90:3000/inspector.js",

            
    "remote"    true
            
    "bootstrap" true 
        

    ], 
    Application.js:
    PHP Code:
    launch: function () {
                
    SenchaInspector.init('http://localhost:3000/inspector.js');

    other code....


  2. Honestly I don't know much about using a project in Eclipse with Tomcat... but "sencha app refresh" is almost always required when you edit app.json.

    If this route continues to be problematic for you, I'd encourage you to try the bookmarklet as noted in the docs. That doesn't require any changes to your application code.

  3. #2
    Sencha Developer
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516
    Answers
    99

    Default

    I had to edit your code in order to better read it... and if I have done so correctly, the "path" to inspector.js in your app.json is commented out.

  4. #3
    Sencha User
    Join Date
    Sep 2014
    Posts
    3

    Default

    This was a copy and paste error on my part. The code that I am using does not have the path commented out. My code in fact is as follows:
    PHP Code:
    "js": [
        { 
    "path""${framework.dir}/build/ext-all-rtl-debug.js" },
        { 
    "path""app.js""bundle"true },

        
    //Sencha Inspector code
        
    {
            
    // default settings
            
    "path" "http://localhost:3000/inspector.js",
            
    // Or Use your Machine Name
            //"path" : "http://MyComputerName:3000/inspector.js",
            // Or Use your IP Address
            //"path" : "http://123.456.78.90:3000/inspector.js",

            
    "remote"    true,
            
    "bootstrap" true
        
    }


  5. #4
    Sencha Developer
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516
    Answers
    99

    Default

    Did you run "sencha app refresh" in Sencha Cmd?

  6. #5
    Sencha User
    Join Date
    Sep 2014
    Posts
    3

    Default

    Screen Shot 2015-08-21 at 2.27.08 PM.pngI am not running the application through the sencha web server. I have the code running in Eclipse with a Tomcat server. I have modified the code and clean and built the project and also bounced the Tomcat server. Here is a screenshot of the structure of my project. Shouldn't it pick up the changes once I bounce the server without having to run a cmd refresh?

  7. #6
    Sencha Developer
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516
    Answers
    99

    Default

    Honestly I don't know much about using a project in Eclipse with Tomcat... but "sencha app refresh" is almost always required when you edit app.json.

    If this route continues to be problematic for you, I'd encourage you to try the bookmarklet as noted in the docs. That doesn't require any changes to your application code.

Similar Threads

  1. Uncaught ReferenceError: WebKitPoint is not defined
    By darkhorni in forum Sencha Touch 1.x: Bugs
    Replies: 4
    Last Post: 1 Dec 2014, 5:22 PM
  2. Uncaught ReferenceError: Ext is not defined
    By mlotfi in forum Ext: Q&A
    Replies: 10
    Last Post: 7 May 2014, 1:01 AM
  3. [FIXED] Uncaught ReferenceError: Ext is not defined
    By HugoTrigo in forum Sencha Architect 2.x: Bugs
    Replies: 13
    Last Post: 22 Apr 2013, 9:48 AM
  4. Uncaught ReferenceError: Ext is not defined
    By HugoTrigo in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 17 Apr 2013, 10:45 AM
  5. Uncaught ReferenceError: Ext is not defined app.js:1 in chrome
    By derekeancedy01 in forum Community Discussion
    Replies: 3
    Last Post: 29 Nov 2012, 10:58 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
  •