在浏览器中查看Sencha构建错误 [英] Sencha build error when viewed in browser

查看:154
本文介绍了在浏览器中查看Sencha构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于设法使用Cmd 3.10.2.342和touch 2.2.1创建了我的sencha网络应用程序的生产版本。

我的所有定制文件都包含在三角形是按照预期的方式创建的。但是,当我在浏览器中运行它时,它会在加载视图中停止。控制台日志说:


TypeError:'undefined'不是一个函数(评估'h.call(w,w)') p>

我已经将错误追溯到 Ext.application({... 在应用程序中.js。

我尝试了以下更改,但仍然收到错误:


  1. new Ext.application({ ...

  2. Ext.Application({...

  3. 新的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:

  1. new Ext.application({...
  2. Ext.Application({...
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆