在浏览器中查看Sencha构建错误 [英] Sencha build error when viewed in browser
问题描述
我的所有定制文件都包含在三角形是按照预期的方式创建的。但是,当我在浏览器中运行它时,它会在加载视图中停止。控制台日志说:
TypeError:'undefined'不是一个函数(评估'h.call(w,w)') p>
我已经将错误追溯到 Ext.application({...
在应用程序中.js。
我尝试了以下更改,但仍然收到错误:
- new Ext.application({ ...
- Ext.Application({...
- 新的Ext.Application({...
我如何纠正这一点?
当我生成一个apk文件时,我没有这个问题
在我的生产app.js中,我发现这个
if(!s){a.set(i,w ); if(h){h.call(w,w)} a.triggerCreated(i); return}
我真的知道它是什么,我已经尝试删除它等等,但它只是给了其他错误,而不是
我跟踪了回到与 itemId
和 id
的问题/冲突,其中sencha告诉我在一个组件已经存在并应该被销毁。
通过删除 id
和 itemId
并使用 cls
而不是
I have finally managed to create a production build of my sencha web app using Cmd 3.10.2.342 and touch 2.2.1
All my bespoke files are included and deltas are created as one would expect. However, when I run it in the browser, it stalls at the loading view. Console log says:
TypeError: 'undefined' is not a function (evaluating 'h.call(w,w)')
I have traced the error to Ext.application({...
in app.js.
I have tried the following changes, but still get errors:
- new Ext.application({...
- Ext.Application({...
- new Ext.Application({...
How can I rectify this?
When I generate an apk file, I do not have this problem
In my production app.js, I found this
if(!s){a.set(i,w);if(h){h.call(w,w)}a.triggerCreated(i);return}
I don't really know what it does. I have tried deleting it etc, but it just the gives other errors instead
I traced this back to issues/conflicts with itemId
and id
where sencha was telling me that a component already existed and should be destroyed.
Solved it by removing id
and itemId
and used cls
instead
这篇关于在浏览器中查看Sencha构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!