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!
phantomjs extjs extjs5 sencha-cmd
Duncan
source share