【问题标题】:Sencha build production errorSencha构建生产错误
【发布时间】:2012-11-27 07:14:24
【问题描述】:

我已成功创建生产版本。当我尝试从 chrome 访问生产版本时,我遇到了错误

错误:[Ext.Loader] 通过 XHR 同步加载失败: 'src/field/Select.js';请验证该文件是否存在。 XHR 状态 代码:404

我已经按照 app.js 的要求包含了Ext.field.Select

请告诉我现在该怎么办

【问题讨论】:

    标签: sencha-touch-2 production


    【解决方案1】:

    在脚本开始之前,即在 app.js 中。尝试添加Ext.Loader.setConfig({ enabled: true });Check this

    另外,在app.js prod环境dir中设置sdk的src:Ext.Loader

    【讨论】: