Results 1 to 2 of 2

Thread: [SOLVED] Build package issue

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Location
    Taiwan
    Posts
    11

    Default [SOLVED] Build package issue

    Hi,

    I try to generate new package follow the doc(https://docs.sencha.com/cmd/6.6.0/) but still failed.
    below is my command
    [Step #1] init package
    Code:
    # sencha generate workspace -fo -fu ext-workspace
    
    # sencha generate package -fr ext -to classic -ty TOOLKIT -name MyButton
    
    # cd packages/local/MyButton/
    Issue #1: After sencha generate package, the .sencha/ is not auto created. Why ?

    [Step #2] Add Button.js and build package
    Code:
    # Button.js content
    # Path: packages/local/MyButton/src/Button.js
    Ext.define('MyButton.Button', {
      extend: 'Ext.button.Button',
      xtype: 'my-button',
      cls: 'my-button',
    });
    Build result
    Code:
    Sencha Cmd v6.6.0.13
    [INF] Processing Build Descriptor : default
    [INF] Loading compiler context
    [ERR] Failed to resolve dependency Ext.button.Button for file MyButton.Button
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.button.Button
    [ERR]     at com.sencha.command.Sencha.m
    [ERR] ain(Sencha.java:147)
    [ERR]
    [ERR] Total time: 3 seconds
    
    
    [ERR] /Users/dianwu/bin/Sencha/Cmd/6.6.0.13/plugins/package.plugin.xml:160: The following error occurred while executing this line:
    /Users/dianwu/bin/Sencha/Cmd/6.6.0.13/ant/build/package/build-impl.xml:134: The following error occurred while executing this line:
    /Users/dianwu/bin/Sencha/Cmd/6.6.0.13/ant/build/package/js-impl.xml:74: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.button.Button
    [ERR] A log is available in the file "/Users/dianwu/Documents/workspace/ext-workspace/packages/local/MyButton/sencha-error-20181019.log"
    Issue #2: How to build package?
    Last edited by dianext; 18 Oct 2018 at 7:37 PM. Reason: Find solution

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Location
    Taiwan
    Posts
    11

Similar Threads

  1. Replies: 3
    Last Post: 6 Oct 2016, 8:28 AM
  2. Sencha Cmd 6 package build issue
    By sivajp in forum Sencha Cmd
    Replies: 1
    Last Post: 9 Nov 2015, 6:37 AM
  3. Sencha Cmd 6 package build issue
    By sivajp in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 3 Nov 2015, 1:27 AM
  4. Replies: 1
    Last Post: 23 Sep 2015, 11:54 AM
  5. build production act differently than build package in wp8.1
    By lovelyhibabe in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 16 Jun 2014, 4:36 PM

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
  •