2017-03-06 62 views
0

我有Extjs6應用程序。我正在使用Sencha Architect for UI。當我使用構建設置構建Web時,構建完成後,測試構建出現以下錯誤,並且點擊了我的index.html。sencha架構師生產構建:未捕獲TypeError:c不是構造函數

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) 

請幫我解決這個錯誤。

問候

回答

1

這是由於不需要你使用一個類,在發展他們動態加載。

要找出丟失的類別,您應該運行sencha app build testing這不會縮小代碼,並且您的錯誤消息將更有意義。

+0

嗨Theo, 我在做sencha應用程序構建測試後出現以下錯誤。 未被捕獲的錯誤:[Ext.createByAlias]無法識別的別名:在Ext.Inventory.instantiateByAlias interaction.itemhighlight (app.js:13520) 在Object.factory(app.js:7711) 在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) – user1506628

-1

我也有類似的問題,這個問題似乎是在創造生產或測試版本,您應該添加缺少庫「需要」的觀點一節煎茶不導入庫在這種情況下使用它,我認爲圖書館是'Ext.chart.interactions.ItemHighlight'之後,所有的版本應該正常工作,因爲sencha現在知道它在構建中需要這個庫。 對不起,我的英語,希望它有幫助。

+0

你的答案是否增加了其他現有答案沒有的問題? – GrumpyCrouton

+0

答案下方的評論似乎暗示user1506628仍然存在問題,Theo提供的答案確實有助於檢測問題,我剛纔告訴如何解決錯誤,如果我的答案應該是評論或者可能不是我的歉意。 – z3ro