Results 1 to 5 of 5

Thread: Extjs 6.5 doesn't load d3.js when using d3 package in production or testing builds

  1. #1
    a.silanskas
    Guest

    Default Extjs 6.5 doesn't load d3.js when using d3 package in production or testing builds

    In sencha app watch all works fine. However, if I build my app for production or testing, I get d3 is undefined error. If I include <script src="https://d3js.org/d3.v4.min.js"></script> in the head tag of the index.html, everything works fine again. It feels like a work around, could it cause any trouble down the path? Also, what could be the reasons that it isn't being loaded on its own by extjs?

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Perhaps something needs to be added to your 'requires' blocks?

  3. #3
    a.silanskas
    Guest

    Default

    I have "d3" in my require block in app.json, and I also have requires: ['Ext.d3.interaction.PanZoom', 'Ext.d3.*'] in the single class that is using the d3.

  4. #4
    Sencha Premium User
    Join Date
    Nov 2009
    Posts
    149
    Answers
    2

    Default

    +1

  5. #5
    Sencha User
    Join Date
    Oct 2015
    Posts
    52
    Answers
    1

    Default

    Quote Originally Posted by a.silanskas View Post
    I have "d3" in my require block in app.json, and I also have requires: ['Ext.d3.interaction.PanZoom', 'Ext.d3.*'] in the single class that is using the d3.
    any news?

Similar Threads

  1. Replies: 9
    Last Post: 21 Mar 2019, 12:29 AM
  2. Cannot find global variable in Cmd testing and production builds
    By minamu1 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 14 Apr 2014, 5:56 PM
  3. Replies: 1
    Last Post: 3 Dec 2013, 12:32 PM
  4. Replies: 1
    Last Post: 26 Aug 2013, 10:32 AM
  5. Testing and Production builds giving error
    By kryptomens in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 17 Aug 2012, 9:58 AM

Tags for this Thread

Posting Permissions

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