Why does Sencha CMD build fail with PhantomJS 2 error code?

Problem: "Topic capture error" when creating a Sencha CMD workspace application for subproject A (has source files), but sub-project B (without source files) builds fine.

Scenario:

  • A new Sencha workspace (CMD 5.1.0.26) was created and a new project A was added.
  • Project A builds fine ( sencha app build -c production )
  • I add the main view and refer to the module contained in the shared folder (/ project / common / js /).

  • sencha app watch works fine, however sencha app build -c production no longer works in Project A.

  • To test the functionality, I create a new application inside my framework folder, referring to the same version of ExtJS (5.1.0.107), I allow myself project B, and it builds just fine.

Project A still does not work with this error:

 [INF] Writing content to /MyWorkspace/ProjectA/sass/example/bootstrap.json [INF] Writing content to /MyWorkspace/ProjectA/sass/example/bootstrap.js [INF] Capturing theme image [ERR] loading page /MyWorkspace/ProjectA/sass/example/theme.html == Unhandled Error == TypeError: '''undefined''' is not a function (evaluating '''Ext.require([ '''Ext.layout.Context''' ])''') file:///MyWorkspace/ext/packages/ext-theme-base/sass/example/render.js:7 [ERR] [ERR] BUILD FAILED [ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2 [ERR] [ERR] Total time: 46 seconds [ERR] The following error occurred while executing this line: /MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:306: The following error occurred while executing this line: /MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:307: The following error occurred while executing this line: /MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:163: com.sencha.exceptions.ExProcess: phantomjs process exited with code 2 

Workaround: At the moment, I have forbidden the error by editing sencha.cfg and adding the line: skip.slice=1

However, the files in /MyWorkspace/ProjectA/sass/ same between the failed projects A and Project B, except that the contents are slightly different in the files that reference application names, but that’s all.

ExtJS files are few in number, and I did a manual check of the differences, with the exception of bootstrap.json , which did not give in to any visual viewing.

I would be very interested if anyone has any pointers to what is probably missing or different between these projects, which seems to be the reason that part of my infrastructure will be missing when it is needed to evaluate line 7 render.js .

Let me know if you need more information. Thanks!

+8
phantomjs extjs extjs5 sencha-cmd
source share

No one has answered this question yet.

See related questions:

5
Sancha built for sassa target
3
Sencha Cmd v4.0.2.67 Failed to create background process
2
Sencha Cmd cannot create application in specific directories
one
Using Sencha Cmd, how can I NOT build MyApp-all.css?
one
sencha 2.3.1 build native app gives error in windows 7
0
Sencha Touch 2.x - sencha app build native team
0
Error creating sencha application using cordova for android
0
Sencha Touch build app with all classes
0
Sencha Cmd 5.1 error when updating Extjs framework relative to / absolute path
0
Launching a Sencha application on MacOS Sierra failed with error- "Creating PhantomJS sass with code: 139"

All Articles