PDA

View Full Version : [6.7.0: Commercial] Problem running newly generated application "spawn UNKNOWN"



25 May 2019, 1:11 AM
I followed the below guide, and created an example application through ext-gen.
https://docs.sencha.com/extjs/6.7.0/guides/getting_started/open_tooling.html

There is no errors generating the application.

When i run "npm start", it opens a blank page and shows the following error::

> [email protected] dev C:\Sencha-npm\my-app
> webpack-dev-server --env.environment=development


i [ext]: ext-webpack-plugin v6.7.0, Ext JS v6.7.0.210 Commercial Edition, Sencha Cmd v6.7.0.63, webpack v4.32.2
i [ext]: Building for development
i [ext]: Treeshake is false
i 「wds」: Project is running at http://0.0.0.0:1962/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from ./
i 「wds」: 404s will fallback to /index.html
i [ext]: Building Ext bundle at: ./
i [ext]: [ERR] internal/child_process.js:394 throw errnoExcep
i [ext]: [ERR] tion(err, 'spawn'); ^ Error: spawn UNKNOWN at ChildProcess.spawn (internal/child_process.js:394:11) at Object.spawn (child_process.js:539:9) at Object.<anonymous> (C:\Sencha-npm\my-app\node_modules\@sencha\cmd\bin\sencha:12:42) at Module._compile (internal/modules/cjs/loader.js:774:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10) at Module.load (internal/modules/cjs/loader.js:641:32) at Function.Module._load (internal/modules/cjs/loader.js:556:12) at Function.Module.runMain (internal/modules/cjs/loader.js:837:10) at internal/main/run_main_module.js:17:11 { errno: 'UNKNOWN', code: 'UNKNOWN', syscall: 'spawn' }
i [ext]: Opening browser at http://localhost:1962
i [ext]: Completed ext-webpack-plugin processing
× 「wdm」: Built at: 2019-05-25 11:03:07


ERROR in 1
i 「wdm」: Failed to compile.

---

Any ideas?


Thanks in advance

27 May 2019, 3:30 AM
I followed the below guide, and created an example application through ext-gen.
https://docs.sencha.com/extjs/6.7.0/guides/getting_started/open_tooling.html

There is no errors generating the application.

When i run "npm start", it opens a blank page and shows the following error::

> [email protected] dev C:\Sencha-npm\my-app
> webpack-dev-server --env.environment=development


i [ext]: ext-webpack-plugin v6.7.0, Ext JS v6.7.0.210 Commercial Edition, Sencha Cmd v6.7.0.63, webpack v4.32.2
i [ext]: Building for development
i [ext]: Treeshake is false
i 「wds」: Project is running at http://0.0.0.0:1962/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from ./
i 「wds」: 404s will fallback to /index.html
i [ext]: Building Ext bundle at: ./
i [ext]: [ERR] internal/child_process.js:394 throw errnoExcep
i [ext]: [ERR] tion(err, 'spawn'); ^ Error: spawn UNKNOWN at ChildProcess.spawn (internal/child_process.js:394:11) at Object.spawn (child_process.js:539:9) at Object.<anonymous> (C:\Sencha-npm\my-app\node_modules\@sencha\cmd\bin\sencha:12:42) at Module._compile (internal/modules/cjs/loader.js:774:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10) at Module.load (internal/modules/cjs/loader.js:641:32) at Function.Module._load (internal/modules/cjs/loader.js:556:12) at Function.Module.runMain (internal/modules/cjs/loader.js:837:10) at internal/main/run_main_module.js:17:11 { errno: 'UNKNOWN', code: 'UNKNOWN', syscall: 'spawn' }
i [ext]: Opening browser at http://localhost:1962
i [ext]: Completed ext-webpack-plugin processing
× 「wdm」: Built at: 2019-05-25 11:03:07


ERROR in 1
i 「wdm」: Failed to compile.

---

Any ideas?


Thanks in advance

We found a solution to the problem after a bit of research.

It works after we updated the Sencha Cmd (https://docs.sencha.com/extjs/6.7.0/guides/getting_started/getting_started.html) like so:
1. Placed the SDK in a path line: "C:\Users\%user%\Sencha-SDKs\ext-6.7.0.210".
2. Updated the sencha config with: "sencha config --prop sencha.sdk.path=C:\Users\%user%\Sencha-sdks --save".