Results 1 to 3 of 3

Thread: Error when trying to run app: uncaught type error: object is not a function

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Connecticut
    Posts
    1,016

    Default Error when trying to run app: uncaught type error: object is not a function

    I am using 4.2.2 and Cmd 4.0

    Built the production app fine. No warnings... I am using ColdFusion and Direct so had to:
    1) add the line that brings in the provider to my index.html
    (<script type="text/javascript" src="app.js"></script>)
    1A) I had to copy the folder with my ColdFusion code to the home directory

    2) had to copy the src/direct folder to the home directory

    3) also had to copy the direct folder to my home directory

    Now when I try to load the page, I get that error.

    Help!

    Bruce

    Not sure if this helps, but when I expand the error I have:

    • [COLOR=red !important]Uncaught TypeError: object is not a function[/COLOR]
      • [COLOR=red !important](anonymous function)[/COLOR]
      • [COLOR=red !important]Ext.ClassManager.instantiate[/COLOR]app.js:1
      • [COLOR=red !important](anonymous function)[/COLOR]app.js:1
      • [COLOR=red !important]Ext.cmd.derive.addProvider[/COLOR]app.js:1
      • [COLOR=red !important]Ext.application.launch[/COLOR]app.js:1
      • [COLOR=red !important]Ext.cmd.derive.onBeforeLaunch[/COLOR]app.js:1
      • [COLOR=red !important]Ext.cmd.derive.constructor[/COLOR]app.js:1
      • [COLOR=red !important]i[/COLOR]app.js:1
      • [COLOR=red !important](anonymous function)[/COLOR]app.js:1
      • [COLOR=red !important](anonymous function)[/COLOR]app.js:1
      • [COLOR=red !important]fire[/COLOR]app.js:1
      • [COLOR=red !important]Ext.apply.readyEvent.i.fire[/COLOR]app.js:1
      • [COLOR=red !important]Ext.apply.fireReadyEvent[/COLOR]app.js:1
      • [COLOR=red !important](anonymous function)[/COLOR]

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Connecticut
    Posts
    1,016

    Default

    ok, after more research, I have a question, where do I put the line that reads in the direct descriptor? If I put it AFTER the call to the app.js file (which has all of the Ext libraries included) then I get the error above. If I put it before I get "Ext undefined since the 1st line is: Ext.ns('RPC');

    Bruce

  3. #3
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    If you don't copy the Direct folders anywhere and run your application in dev using ext-dev.js do you get synchronous warnings in the console?

Posting Permissions

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