如何修复 extjs4.1 中的构建错误 com.sencha.exceptions.ExProcess

moh*_*han 5 extjs extjs4.1 sencha-architect extjs4.2

构建 extjs4.1 项目时出现以下异常。谁能告诉我如何避免它?我正在使用 sencha 命令 version3.0。使用命令

sencha app build


[ERR]           D:\TestProduction\.sencha\app\build-impl.xml:213: com.sencha.exc
eptions.ExProcess: phantomjs process exited with code 100 :
Run Code Online (Sandbox Code Playgroud)

谢谢

小智 2

我在运行 sencha app build 时遇到了同样的问题:

\n\n
\n
[...]\n[INF] loading page .../static/sass/example/theme.html\nfailed to render widgets within 30 sec.\n\n[ERR]\n[ERR] BUILD FAILED\n[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 1\n[ERR]\n[ERR] Total time: 49 seconds\n[ERR] The following error occurred while executing this line:\n.../static/.sencha/app/build-impl.xml:469: com.sencha.exceptions.ExProcess: phantomjs process exited with code 1\n
Run Code Online (Sandbox Code Playgroud)\n
\n\n

看来我的项目目录缺少该sass文件夹。

\n\n

所以我创建了一个新应用程序并从那里复制了 sass 文件夹:

\n\n
\n
$ cd /tmp\n$ sencha -s ~/develop/js/Sencha/ext-4.2.1.883 generate app MyApp myapp\n$ tree myapp/sass\nmyapp/sass\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 config.rb\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 etc\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 example\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 bootstrap.css\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 custom.js\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 render.js\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 theme.html\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 src\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 var\n$ cp -r myapp/sass <dest>\n
Run Code Online (Sandbox Code Playgroud)\n
\n\n

我还尝试将 sass 文件夹直接从ext我的应用程序中的文件夹中复制出来:

\n\n
\n

$ cp -r ext/packages/ext-theme-classic/sass 。

\n
\n\n

但好像有些路径没有设置。所以我必须手动编辑该文件theme.html

\n\n
\n
$ vim sass/example/theme.html\n\n[...]\n<!--\nThese links need to match the ext sdk from the current project\n-->\n<link rel="stylesheet" type="text/css" href="example.css" />\n<script type="text/javascript" src="../../ext/ext-dev.js"></script>\n<script type="text/javascript" src="bootstrap.js"></script>\n
Run Code Online (Sandbox Code Playgroud)\n
\n\n

在此之后,我能够再次执行以下操作sencha app build

\n\n
$ sencha app build\n[...]\n\n[INF] loading page .../static/sass/example/theme.html\nCapturing screenshot\nSaving slicer widget manifest\nCapture complete\n\n[INF] Capture complete\n[INF]      [echo] Slicing theme images to .../static/build/CreateProduct/production/resources\n[INF] Including theme package ext-theme-classic for app.theme=ext-theme-classic build\n[INF] Slicing images...\n[INF] Slicing complete - generated 0 images\n[INF]\n[INF] -after-slice:\n[INF]\n[INF] -build:\n[INF]\n[INF] -after-build:\n[INF]\n[INF] build:\n[INF]\n[INF] app-build:\n
Run Code Online (Sandbox Code Playgroud)\n