微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何让 ExtJS 使用外部变量构建

如何解决如何让 ExtJS 使用外部变量构建

我正在尝试做一个

sencha 应用构建

在我的项目中 - 但它使用“broadcastChannel”并且我收到构建错误

== Unhandled Error ==
ReferenceError: Can'''t find variable: broadcastChannel

  file:[.Stuff.]/PopupWindowWithComms.js:11 in global code

[ERR]
[ERR] BUILD Failed
[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
[ERR]   at su
[ERR] n.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERR]
[ERR] Total time: 28 seconds

[ERR] C:\Users\mike\bin\Sencha\Cmd\7.3.1.27\plugin.xml:333: The following error occurred while executing this line:
C:\Users\mike\bin\Sencha\Cmd\7.3.1.27\ant\build\app\build-impl.xml:341: The following error occurred while executing this line:
C:\Users\mike\bin\Sencha\Cmd\7.3.1.27\ant\build\app\slice-impl.xml:378: The following error occurred while executing this line:
C:\Users\mike\bin\Sencha\Cmd\7.3.1.27\ant\build\app\slice-impl.xml:379: The following error occurred while executing this line:
C:\Users\mike\bin\Sencha\Cmd\7.3.1.27\ant\build\app\slice-impl.xml:220: com.sencha.exceptions.ExProcess: phantomjs process exited with code 2

(如果我进行 sencha 应用程序构建开发 - 很好..)

有什么办法让它接受那只是一个可用的全局变量吗?

我试过了

/*全局变量 广播频道 */

只是偶然,但这似乎没有帮助

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。