sencha architect production build : Uncaught TypeError: c is not a constructor
sencha architect production build : Uncaught TypeError: c is not a constructor
我有 Extjs6 应用程序。我正在为 UI 使用 Sencha Architect。当我使用构建设置构建 Web 时,测试构建在构建完成并点击我的 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)
请帮我解决这个错误。
此致
这是因为不需要您使用的 class,在开发中它们是动态加载的。
要弄清楚 class 缺少什么,您应该 运行 sencha app build testing
这不会缩小代码,并且您的错误消息会更有意义。
我有一个类似的问题,问题似乎是 sencha 在创建生产或测试版本时没有导入库,你应该在“requires" 在这种情况下使用它的视图部分我认为库是 'Ext.chart.interactions.ItemHighlight' 在这之后你的所有构建应该正常工作因为 sencha 现在知道它需要这个构建中的库。
抱歉我的英语不好,希望对您有所帮助。
我有 Extjs6 应用程序。我正在为 UI 使用 Sencha Architect。当我使用构建设置构建 Web 时,测试构建在构建完成并点击我的 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)
请帮我解决这个错误。
此致
这是因为不需要您使用的 class,在开发中它们是动态加载的。
要弄清楚 class 缺少什么,您应该 运行 sencha app build testing
这不会缩小代码,并且您的错误消息会更有意义。
我有一个类似的问题,问题似乎是 sencha 在创建生产或测试版本时没有导入库,你应该在“requires" 在这种情况下使用它的视图部分我认为库是 'Ext.chart.interactions.ItemHighlight' 在这之后你的所有构建应该正常工作因为 sencha 现在知道它需要这个构建中的库。 抱歉我的英语不好,希望对您有所帮助。