Search code examples
extjsbuildsencha-architect

sencha architect production build : Uncaught TypeError: c is not a constructor


I am having Extjs6 App. I am using Sencha Architect for UI . When I am building web using build setting , testing build was getting following error after build is done and onclick of my index.html.

  Uncaught Error: [Ext.createByAlias] Unrecognized alias: interaction.itemhighlight 
       at Ext.Inventory.instantiateByAlias (app.js:13520) 
       at Object.factory (app.js:7711) at constructor.applyInteractions (app.js:213699) 
       at constructor.setter [as setInteractions] (app.js:9056) 
       at constructor.addItemHighlight (app.js:206608) 
       at constructor.updateTooltip (app.js:206589) 
       at constructor.setter [as setTooltip] (app.js:9062)

Please help me to resolve this error.

Regards


Solution

  • This will be due to not requiring a class that you use, in development they are loaded dynamically.

    To figure out what class is missing, you should run sencha app build testing which will not minify the code, and your error message will be more meaningful.