Results 1 to 3 of 3

Thread: Sencha CMD - Uncaught TypeError: Ext.define is not a function after production build

  1. #1

    Default Sencha CMD - Uncaught TypeError: Ext.define is not a function after production build

    Hi,
    I've got some issues connected with Production build of ExtJS 6.2.1 app. When i use:

    sencha app build --production (or sencha app build production)

    and run my app via index.html i get errors:

    Uncaught TypeError: Ext.define is not a function
    in most of /resources/ JS files.

    When i run simply sencha app build and use the index.html file which is on my base folder, everything is OK - there are no Uncaught TypeError: Ext.define is not a function errors.

    How can i fix this?

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Default

    I have the same issue. Is there any solution that you have found?

  3. #3

    Default

    yeah, Our frontend developer found solution. You've got to add something like this:
    {
    "path": "Resources/abc.js",
    "bundle": false,
    "includeInBundle": true
    },
    to your app.json file.

Similar Threads

  1. Replies: 9
    Last Post: 21 Aug 2015, 5:17 AM
  2. Replies: 6
    Last Post: 25 Jun 2014, 6:27 AM
  3. Replies: 0
    Last Post: 4 Feb 2013, 2:18 AM
  4. Replies: 1
    Last Post: 11 Dec 2012, 6:28 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
  •