5

构建 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 :

谢谢

4

2 回答 2

2

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

[...]
[INF] loading page .../static/sass/example/theme.html
failed to render widgets within 30 sec.

[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 1
[ERR]
[ERR] Total time: 49 seconds
[ERR] The following error occurred while executing this line:
.../static/.sencha/app/build-impl.xml:469: com.sencha.exceptions.ExProcess: phantomjs process exited with code 1

我的项目目录似乎缺少该sass文件夹。

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

$ cd /tmp
$ sencha -s ~/develop/js/Sencha/ext-4.2.1.883 generate app MyApp myapp
$ tree myapp/sass
myapp/sass
├── config.rb
├── etc
├── example
│   ├── bootstrap.css
│   ├── custom.js
│   ├── render.js
│   └── theme.html
├── src
└── var
$ cp -r myapp/sass <dest>

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

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

但似乎有些路径没有设置。所以我不得不手动编辑文件theme.html

$ vim sass/example/theme.html

[...]
<!--
These links need to match the ext sdk from the current project
-->
<link rel="stylesheet" type="text/css" href="example.css" />
<script type="text/javascript" src="../../ext/ext-dev.js"></script>
<script type="text/javascript" src="bootstrap.js"></script>

在此之后,我能够再次做到sencha app build

$ sencha app build
[...]

[INF] loading page .../static/sass/example/theme.html
Capturing screenshot
Saving slicer widget manifest
Capture complete

[INF] Capture complete
[INF]      [echo] Slicing theme images to .../static/build/CreateProduct/production/resources
[INF] Including theme package ext-theme-classic for app.theme=ext-theme-classic build
[INF] Slicing images...
[INF] Slicing complete - generated 0 images
[INF]
[INF] -after-slice:
[INF]
[INF] -build:
[INF]
[INF] -after-build:
[INF]
[INF] build:
[INF]
[INF] app-build:
于 2013-10-01T09:37:56.950 回答
1

我有同样的问题,它似乎与一个客户端路径有关,该路径名称中包含“#”,即 c:\projects\c#\project\client

在不同的目录中生成应用程序解决了这个问题

于 2014-03-17T10:33:31.780 回答