Results 1 to 3 of 3

Thread: Got error "io is not defined" because conflicts with jspdf

  1. #1
    Sencha User
    Join Date
    May 2014

    Default Answered: Got error "io is not defined" because conflicts with jspdf

    I'm using jsPDF ( for PDF document creation in a Sencha ExtJS6 project. When I was trying to inspect the app using Sencha Inspector, the inspector was failed to be connected to since the script could not go through the function:
    f = function() {
        if (AI.socket = io(b),
        AI.socket.on("ai_request", g),
        AI.socket.on("reconnect", function() {
    and the error "io is not defined" would be thrown every time the function was visited.

    My investigation showed that there are conflicts between Sencha's and the jsPDF over loading required scripts. If I removed the jsPDF from loading along with my app, Sencha Inspector can be connected successfully with errors.

    Tested version:
    jsPDF: 1.1.239-git Built on 2015-08-26T20:20
    Sencha Inspector:
    Sencha: ExtJS 6.0.1

  2. I guess I fail to see why jspdf would inhibit from loading?

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    I guess I fail to see why jspdf would inhibit from loading?
    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:

  4. #3
    Sencha Premium User
    Join Date
    Jul 2015

    Default IO is not defined error

    I have a similar reporting tool integrated. I get the same error when trying to use inspector. If I disable the reporting engine, then inspector works. I would rather not disable the reporting engine.

Similar Threads

  1. Sencha packaging generate error "document is not defined"
    By JessyL in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 30 Dec 2012, 9:10 AM
  2. "Ext is not defined" error message when using offline mode
    By profunctional in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 13 Jul 2010, 11:24 AM
  3. Replies: 6
    Last Post: 24 Dec 2009, 5:40 AM
  4. "Function not defined" error in Callback
    By RJR in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 23 Aug 2008, 12:24 PM
  5. "Effect not defined" error for DateField using Ext.Editor
    By devonbl in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 16 Jun 2008, 10:49 AM

Posting Permissions

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