Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs 6 'c is not a constructor'

Tags:

extjs6

My app is working fine during development and the file download is working great.

Now after building the app with -production this code sipped fails. It tries to load some "/.js" file without an name ?!?

I have this in my view requires : ['Ext.form.FormPanel'],

The log messages are printed but the form submit fails with c is not a constructir :(

    onInvoiceDownloadButtonClicked : function(grid, rowIndex, colIndex, item, e, record) {

    console.log('button pressed');
    var fp = new Ext.form.FormPanel({
        url : 'back/invoice/get/' + record.get('id'),
        standardSubmit : true,
        method : 'POST'
    });

    console.log(fp);
    fp.form.submit();

}

Yes there is a synchronous loading warning but with .js ? No filename hmm

enter image description here

like image 223
Pascal Avatar asked Aug 31 '25 18:08

Pascal


1 Answers

Build the Application with testing mode using the following command:

sencha app build testing

and check the browser for more detailed errors.

like image 119
sakshidheer Avatar answered Sep 02 '25 16:09

sakshidheer