Problem with build app for Windows


#1

I’ve got problem with build App for Windows Phone. When I’m trying run app I get long list of bugs. My cordova version is 4.1.0. I have tried earlier on 5.0.0. Visual Studio Version is 2015.

Here is my errors:

    Severity    Code    Description Project File    Line
Error   TS6053  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/lib/ngCordova/LICENSE.ts' not found.  CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6053  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/lib/angular-ui-router/LICENSE.ts' not found.  CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/cordova.js' must have extension '.ts' or '.d.ts'. CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/css/.DS_Store' must have extension '.ts' or '.d.ts'.  CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/cordova_plugins.js' must have extension '.ts' or '.d.ts'. CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/img/.DS_Store' must have extension '.ts' or '.d.ts'.  CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/css/style.css' must have extension '.ts' or '.d.ts'.  CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1
Error   TS6054  Build: File 'C:/Users/admin/Desktop/App/platforms/windows/www/img/01.jpg' must have extension '.ts' or '.d.ts'. CordovaApp.Phone    C:\Users\admin\Desktop\App\platforms\windows\VSTSC  1

I don’t have any idea how resolve this problem. Someone can help me with that?


Error TS6054 Build: File 'cordova_plugins.js' has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts'
#2

same here, does someone have a solution?


#3

Same here We need to push this, and clear cordova cache doesn’t help before that is said.


#4

i have this problem with bower and angular ui trouter , to solve this , i delete folder of ui router in bower and include only js archive on project


#5

In my case I have solved this updating Ionic, I created a new project with the ionic start command and merge with the old source code, everything is working and I can now use Visual Studio 2015


#6

Update cordova@latest

It works on windows 10 and windows phone 8.1 when on cordova 6.0


#7

Thanks, I’ll check that.


#8

I had same error, with cordova 5.4.1 and with cordova 6.0 too.
I found solution here : https://taco.visualstudio.com/en-us/docs/tutorial-ionic/#typescript

I’m not using Typescript, so I simply removed angular-ui-router.d.ts file (in lib/angular-ui-router/api).

And then I can build for windows (cordova 5.4.1), either in the root project, or in the platforms/windows/CordovaApp solution (I have to build in this file to be able to modify Content URIs in manifest).

Hope it can help.