Search code examples
visual-studiocordovawindows-8sencha-touchsencha-touch-2

cordova add platform add/build windows8 error


I am unable to create a cordova/sencha touch windows8 project. When adding platform windows8 via cordova platform add windows8 it gives me this error:

E:\testAndroid1\<app name>\platforms>cordova platform add windows8
Checking windows8 requirements...
Creating windows8 project...
Creating Cordova Windows 8 Project:
        App Name : -------
        Namespace : com.****.-------
        Path : E:\testAndroid1\<project name>\platforms\windows8
Project created
Error: EISDIR, illegal operation on a directory
    at Object.fs.readSync (fs.js:487:19)
    at Object.fs.readSync (C:\Users\dshahid\AppData\Roaming\npm\node_modules\cor
dova\node_modules\cordova-lib\node_modules\npm\node_modules\graceful-fs\polyfill
s.js:218:23)
    at Object.fs.readFileSync (fs.js:326:28)
    at C:\Users\dshahid\AppData\Roaming\npm\node_modules\cordova\node_modules\co
rdova-lib\src\cordova\metadata\windows8_parser.js:325:30
    at Array.forEach (native)
    at Object.module.exports.add_bom (C:\Users\dshahid\AppData\Roaming\npm\node_
modules\cordova\node_modules\cordova-lib\src\cordova\metadata\windows8_parser.js
:319:15)
    at C:\Users\dshahid\AppData\Roaming\npm\node_modules\cordova\node_modules\co
rdova-lib\src\cordova\metadata\windows8_parser.js:298:18
    at _fulfilled (C:\Users\dshahid\AppData\Roaming\npm\node_modules\cordova\nod
e_modules\q\q.js:798:54)
    at self.promiseDispatch.done (C:\Users\dshahid\AppData\Roaming\npm\node_modu
les\cordova\node_modules\q\q.js:827:30)
    at Promise.promise.promiseDispatch (C:\Users\dshahid\AppData\Roaming\npm\nod
e_modules\cordova\node_modules\q\q.js:760:13)

The steps I am following are:

  1. sencha app refresh
  2. sencha app build testing
  3. copy all files from /build/testing/ to wwww folder of cordova project.
  4. Run platform add windows8 gives error.

Adding wp8 and android work fine and build and run as expected, the issue is only with windows8. Google didn't help either. Please tell what is going wrong.


Solution

  • I finally re-installed windows ultimate version of windows 8.1 and installed visual studio express edition. Previously i had windows professional. don't know what was the problem but reinstalling these things fixed my problem.Thanks for your answers really appreciated!