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

**URL:** <https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511>\
**Category:** ionic-v1\
**Created:** [October 25, 2015, 10:38am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511 "2015-10-25T10:38:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![WasimBeniwale](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wasimbeniwale/32/98431_2.png) [@WasimBeniwale](https://forum.ionicframework.com/u/WasimBeniwale)\
**Post date:** [October 25, 2015, 10:38am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/1 "2015-10-25T10:38:34Z")

</div>

Hi, Got this error on while building

```
ionic build windows

```

I have installed the windows platform for my ionic project as well as I have all the required SDKs with Visual Studio 2015(Community Edition).

I have:  
Ionic version: 1.7.7  
Cordova CLI version: 5.3.3  
VS 2015 (Community Edition)  
Windows 8.1 Pro(x64)

Regards.

**Edit:**  
**Error TS6053 Build: File ‘project path/platforms/windows/www/js/.git/logs/HEAD.ts’ not found.**  
**Got this type of multiple errors for multiple files too**

---

<div class="post-metadata">

**Author:** ![Bichael](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@Bichael](https://forum.ionicframework.com/u/Bichael)\
**Post date:** [November 5, 2015, 3:14pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/2 "2015-11-05T15:14:41Z")

</div>

I have the same issue here.

---

<div class="post-metadata">

**Author:** ![jdnichollsc](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jdnichollsc/32/137196_2.png) [@jdnichollsc](https://forum.ionicframework.com/u/jdnichollsc)\
**Post date:** [November 8, 2015, 11:38pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/3 "2015-11-08T23:38:21Z")

</div>

Me too, I have the same error

+1

---

<div class="post-metadata">

**Author:** ![jonmikelm](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jonmikelm](https://forum.ionicframework.com/u/jonmikelm)\
**Post date:** [November 9, 2015, 9:24am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/4 "2015-11-09T09:24:55Z")

</div>

I am facing the same problem, has anyones solved it?

---

<div class="post-metadata">

**Author:** ![jonmikelm](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jonmikelm](https://forum.ionicframework.com/u/jonmikelm)\
**Post date:** [November 13, 2015, 12:07pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/5 "2015-11-13T12:07:36Z")

</div>

There are another two threads speaking about this problem:

> **[Problem with build app for Windows](http://forum.ionicframework.com/t/problem-with-build-app-for-windows/31655)**
>
> 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 ...

> **[Issue on ionic build windows](http://forum.ionicframework.com/t/issue-on-ionic-build-windows/33993)**
>
> Hello everybody. I am trying to build for windows, using the ionic build windows, But I am getting two types of erros on build. First is that it complains about a missing LICENSE.ts file on every lib folder that I added on my app: VSTSC : error...

Has anyone found a solution?

---

<div class="post-metadata">

**Author:** ![Dupade](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@Dupade](https://forum.ionicframework.com/u/Dupade)\
**Post date:** [November 20, 2015, 10:58am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/6 "2015-11-20T10:58:03Z")

</div>

Yes, I am facing same issue. Please somebody help.

---

<div class="post-metadata">

**Author:** ![OmNomNom](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@OmNomNom](https://forum.ionicframework.com/u/OmNomNom)\
**Post date:** [November 23, 2015, 2:18pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/7 "2015-11-23T14:18:59Z")

</div>

Same problem here:

- Ionic 1.7.8
- Cordova 5.4.0
- Visual Studio 2015 Enterprise Edition
- Windows 8.1 pro (x64)

---

<div class="post-metadata">

**Author:** ![Bichael](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@Bichael](https://forum.ionicframework.com/u/Bichael)\
**Post date:** [December 12, 2015, 9:05am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/8 "2015-12-12T09:05:58Z")

</div>

Problem still exists

---

<div class="post-metadata">

**Author:** ![WasimBeniwale](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wasimbeniwale/32/98431_2.png) [@WasimBeniwale](https://forum.ionicframework.com/u/WasimBeniwale)\
**Post date:** [December 12, 2015, 9:19am UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/9 "2015-12-12T09:19:02Z")

</div>

Yes, haven’t found a solution

---

<div class="post-metadata">

**Author:** ![paulhickman](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@paulhickman](https://forum.ionicframework.com/u/paulhickman)\
**Post date:** [February 23, 2016, 1:46pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/10 "2016-02-23T13:46:59Z")

</div>

If you look in the CordovaApp.Windows.jsproj file that is generated, the last two lines near the bottom reference typescript. If you comment those out, these bulid errors go away. I don’t know how to modify the templating process so the file is created without these lines but if you then load the project in Visual Studio it builds.

However, doing so just yields me an app that shows the splash screen and does nothing else.

---

<div class="post-metadata">

**Author:** ![mafabio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mafabio/32/97201_2.png) [@mafabio](https://forum.ionicframework.com/u/mafabio)\
**Post date:** [February 28, 2016, 2:17pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/11 "2016-02-28T14:17:11Z")

</div>

Was anyone able to solve this?

---

<div class="post-metadata">

**Author:** ![harshit886](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@harshit886](https://forum.ionicframework.com/u/harshit886)\
**Post date:** [August 18, 2016, 7:48pm UTC](https://forum.ionicframework.com/t/error-ts6054-build-file-cordova-plugins-js-has-unsupported-extension-the-only-supported-extensions-are-ts-tsx-d-ts/35511/12 "2016-08-18T19:48:44Z")

</div>

Resolved by adding Exclude directive in CordovaApp.projitems file:  
replace this line  
\<`TypeScriptCompile Include="$(MSBuildThisFileDirectory)www\**"` /\>  
with this  
\<`Content Include="www\ **" Exclude="** \*.ts"`/\>
