1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    0
    NKrishnawat is on a distinguished road

      0  

    Default Ext-4.2.0.663, SenchaCmd3.1: "Failed to find any files for Ext.ux.form.MultiSelect"

    Ext-4.2.0.663, SenchaCmd3.1: "Failed to find any files for Ext.ux.form.MultiSelect"


    I am trying to create a single js application from a multi js extjs application.

    I am getting error when I run the command

    sencha -sdk C:\software\ext-4.2.0-gpl\ext-4.2.0.663 compile page -inindex.html -out build/index.html


    Get following error:
    [ERR] Error executing page compilation Failed to find any files for C:\wam-bpm-ext\sencha-compile-temp-dir\06e1522b-0c89-4912-a918
    -16f7f3054ba9\embedded-script-tag-1.js::ExtRequire::Ext.ux.form.MultiSelect


    Code:
    C:\wam-bpm-ext>C:\Progra~1\SenchaCmd3.1\Sencha\Cmd\3.1.1.274\sencha -sdk C:\software\ext-4.2.0-gpl\ext-4.2.0.663 compile page -inindex.html -out build/index.html
    Sencha Cmd v3.1.1.274
    [INF] Compiling page null
    [INF] Loading classpath entry C:\software\ext-4.2.0-gpl\ext-4.2.0.663\src
    [INF] Loading classpath entry C:\wam-bpm-ext\sencha-compile-temp-dir\06e1522b-0c89-4912-a918-16f7f3054ba9
    [ERR] Failed to find file(s) for depdency reference C:\wam-bpm-ext\sencha-compile-temp-dir\06e1522b-0c89-4912-a918-16f7f3054ba9\em
    bedded-script-tag-1.js::ExtRequire::Ext.ux.form.MultiSelect
    [ERR] Error executing page compilation Failed to find any files for C:\wam-bpm-ext\sencha-compile-temp-dir\06e1522b-0c89-4912-a918
    -16f7f3054ba9\embedded-script-tag-1.js::ExtRequire::Ext.ux.form.MultiSelect
    [ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\wam-bpm-ext\sencha-compile-temp-dir\06e1522b-0c89-4912-a918-1
    6f7f3054ba9\embedded-script-tag-1.js::ExtRequire::Ext.ux.form.MultiSelect

    Here is my index.html (This contains <!-- <x-compile> --> and <!-- <x-bootstrap> -->)

    Code:
    <!DOCTYPE html>
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" href="/icons/favicon.ico" type="image/x-icon" />
        <title>Account Transitions</title>
        <link rel="stylesheet" type="text/css" href="css/bpm-ext-style.css"/>
        <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css"/>
        <link rel="stylesheet" type="text/css" href="ux/css/BoxSelect.css" />
        <link rel="stylesheet" type="text/css" href="ux/css/ItemSelector.css" />
        <link rel="stylesheet" type="text/css" href="ux/css/CheckHeader.css">   
        <!-- <x-compile> -->
            <!-- <x-bootstrap> -->
        <script type="text/javascript" src="extjs/ext-all-debug.js"></script>
            <!-- </x-bootstrap> -->
        <script type="text/javascript" src="Application.js"></script>
        <script type="text/javascript">
        Ext.Loader.setConfig({enabled: true});
        Ext.Loader.setPath('Ext.ux', 'ux');
        Ext.require([
            'Ext.form.Panel',
            'Ext.ux.form.MultiSelect',
            'Ext.ux.form.ItemSelector',
            'Ext.ux.grid.Printer',
            'Ext.ux.exporter.Exporter',
            'Ext.ux.CheckColumn'
        ]);
        </script>
        <!-- </x-compile> -->
    </head>
    <body>
        <div id="loading">
          <div id="loadingMessage" class="loading-indicator">Loading...</div>
        </div>
        <div id="renderhere"></div>
        <div id="itemselector" class="demo-ct"></div>
    </body>
    </html>
    Any idea why I am getting "[ERR] Failed to find file(s) for depdency reference......:ExtRequire::Ext.ux.form.MultiSelect" issue ?

    The loader is enabled (Ext.Loader.setConfig({enabled: true}); ) and there is a "ux" folder which contains all classes for ux components.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Cmd does not look at the paths you set in JS code. In the command line you need to tell the cmd where the classpath is.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    0
    NKrishnawat is on a distinguished road

      0  

    Default Now getting following.

    Now getting following.


    [ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.container.Viewport

    Code:
    C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\simple>C:\Progra~1\SenchaCmd3.
    1\Sencha\Cmd\3.1.1.274\sencha -sdk C:\software\ext-4.2.0-gpl\ext-4.2.0.663 compile -classpath=app,data page -in simple.html -out b
    uild/index.html
    Sencha Cmd v3.1.1.274
    [INF] Compiling page null
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\
    simple\app
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\
    simple\data
    [ERR] Failed to resolve dependency Ext.container.Viewport for file AM.view.Viewport
    [ERR] Error executing page compilation Unknown definition for dependency : Ext.container.Viewport
    [ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.container.Viewport
    Since in the command itself I provided SDK path all classes related to Extjs should be loaded.

    sencha -sdk C:\software\ext-4.2.0-gpl\ext-4.2.0.663 compile -classpath=app,data page -in simple.html -out b
    uild/index.html

    If I add ext.js in path I get following:
    [ERR] Error executing page compilation Failed parsing C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext
    -4.2.0.663\ext.js


    Code:
    C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\simple>C:\Progra~1\SenchaCmd3.
    1\Sencha\Cmd\3.1.1.274\sencha -sdk C:\software\ext-4.2.0-gpl\ext-4.2.0.663 compile -classpath=app,data,../../../ext.js,app.js page
     -in simple.html -out build/index.html
    Sencha Cmd v3.1.1.274
    [INF] Compiling page null
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\
    simple\app
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\
    simple\data
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\ext.js
    [INF] Loading classpath entry C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4.2.0.663\examples\app\
    simple\app.js
    [ERR] Error executing page compilation Failed parsing C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext
    -4.2.0.663\ext.js
    [ERR] com.sencha.exceptions.ExParse: Failed parsing C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.23\webapps\ext-4
    .2.0.663\ext.js

  4. #4
    Touch Premium Member
    Join Date
    Dec 2011
    Posts
    25
    Vote Rating
    0
    smstid is on a distinguished road

      0  

    Default


    Hi
    I have create a build.html file and a build.bat file to build the compacted js file.
    I execute the build.bat from the catalog that contains the application
    Code:
    <!DOCTYPE html>
    
    
    <!-- Auto Generated with Sencha Architect -->
    <!-- Modifications to this file will be overwritten. -->
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>SmsTid</title>
        <link rel="stylesheet" href="../../../../ext-4.2.2.1144/resources/css/ext-all.css">
    
    
         <!-- <x-compile> -->
           <!-- <x-bootstrap> -->
               <script src="../../../../ext-4.2.2.1144/ext-dev.js"></script>
                <script src="build/bootstrap.js" type="text/javascript"></script>
           <!-- </x-bootstrap> -->
    
    
            <script type="text/javascript" src="../ux/grid/Printer.js"></script>
            <script src="app.js"></script>
        <!-- </x-compile> -->
    </head>
    <body></body>
    
    
    </html>
    I have also created a sub catalog named js and have to copy the app.js to js catalog to make it work

    here is my bat script

    Code:
    copy app.js js
    sencha -d compile -classpath=app,../../../../ext-4.2.2.1144/src,app.js page  -yui -in=build.html -out=index.html

Thread Participants: 2