首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在容器上生成用于生产的extjs失败

在容器上生成用于生产的extjs失败
EN

Stack Overflow用户
提问于 2022-09-19 01:41:43
回答 1查看 40关注 0票数 0

我们正在尝试创建一个容器,可以用来构建一个extjs应用程序。

或者Docker文件如下所示:

代码语言:javascript
复制
FROM ubuntu:18.04
RUN apt update -y
RUN apt install git -y
RUN apt install openjdk-8-jdk -y
RUN apt install unzip -y
RUN apt install curl -y
COPY cmd-7.4.0.39-linux-64-no_jre.zip .
RUN unzip cmd-7.4.0.39-linux-64-no_jre.zip
RUN chmod +x SenchaCmd-7.4.0.39-linux-amd64.sh
RUN ./SenchaCmd-7.4.0.39-linux-amd64.sh -q -a
RUN rm SenchaCmd-7.4.0.39-linux-amd64.sh
RUN rm cmd-7.4.0.39-linux-64-no_jre.zip

构建映像之后,我们创建一个容器,签出代码,然后运行:

代码语言:javascript
复制
$ /root/bin/Sencha/Cmd/sencha app build development

这一切都很好,但当我们逃跑时:

代码语言:javascript
复制
$ /root/bin/Sencha/Cmd/sencha app build production

如果失败,则出现以下错误:

代码语言:javascript
复制
[ERR] loading page file:///root/bin/Sencha/Cmd/7.4.0.39/ant/build/slicer/theme.html?_baseDir=%2Fdesktop-client%2Fsrc%2Fbuild%2Ftemp%2Fproduction%2FMyAppName%2Fslicer-temp
setting base href to : file:///desktop-client/src/build/temp/production/MyAppName/slicer-temp/
== Unhandled Error ==
TypeError: undefined is not a function (evaluating '''Ext.define''')

  file:///desktop-client/src/ext/classic/theme-neptune/overrides/Component.js:1 in global code

[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
[ERR]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
[ERR] dAccessorImpl.java:62)
[ERR] 
[ERR] Total time: 17 seconds
[ERR] /root/bin/Sencha/Cmd/7.4.0.39/plugin.xml:333: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.4.0.39/ant/build/app/build-impl.xml:341: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.4.0.39/ant/build/app/slice-impl.xml:378: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.4.0.39/ant/build/app/slice-impl.xml:379: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.4.0.39/ant/build/app/slice-impl.xml:220: com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
[ERR] A log is available in the file "/desktop-client/src/sencha-error-20220919.log"
EN

回答 1

Stack Overflow用户

发布于 2022-09-19 02:54:14

我们的存储库中缺少了使用extjs框架创建的应用程序的一部分..\ext\build文件。一旦添加了这些文件,构建就可以正常工作了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73767581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档