# Typescript compilation failed

**URL:** <https://community.homey.app/t/typescript-compilation-failed/54302>\
**Category:** Apps\
**Created:** [November 4, 2021, 7:51pm UTC](https://community.homey.app/t/typescript-compilation-failed/54302 "2021-11-04T19:51:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 4, 2021, 7:51pm UTC](https://community.homey.app/t/typescript-compilation-failed/54302/1 "2021-11-04T19:51:01Z")

</div>

Hi!  
I’m following a tutorial on youtube ([App creation tutorial](https://apps.developer.homey.app/the-basics/getting-started)) on how to create your own app. The only thing I have done differently was selecting typescript when creating the app. Now, when I’m trying to run the app it fails saying

✓ Pre-processing app…  
✓ Typescript detected. Compiling…  
× Error occurred during while running tsc

Typescript compilation failed.

What have I done wrong?

 ![Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e9a1d90a13b06f3beaeb2d1e7bebc6df3d016cd7.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 5, 2021, 6:15am UTC](https://community.homey.app/t/typescript-compilation-failed/54302/2 "2021-11-05T06:15:41Z")

</div>

Try running `npm run build` to see what the actual error is.

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 5, 2021, 6:36pm UTC](https://community.homey.app/t/typescript-compilation-failed/54302/3 "2021-11-05T18:36:54Z")

</div>

Hi!  
I tried that and the result I get is:

> com.athom.climatecontrol@1.0.0 build  
> tsc

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 5, 2021, 7:16pm UTC](https://community.homey.app/t/typescript-compilation-failed/54302/4 "2021-11-05T19:16:57Z")

</div>

And that’s it? No errors or warnings?

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 6, 2021, 10:02am UTC](https://community.homey.app/t/typescript-compilation-failed/54302/5 "2021-11-06T10:02:12Z")

</div>

Yes that is correct. See attached screenshot.

 ![Homey1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/7/3757708d7eadade8551e7b315097d3b2eb30dba2.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 6, 2021, 10:25am UTC](https://community.homey.app/t/typescript-compilation-failed/54302/6 "2021-11-06T10:25:20Z")

</div>

That’s annoying. My guess is that the failure isn’t actually related to the Typescript compilation (because that seems to work just fine) but one of the other commands that are part of the TS compilation workflow.

Athom doesn’t typically test their code on a lot of platforms, so it wouldn’t surprise me if this is a Windows-specific issue. I don’t run Windows so can’t help with more testing.

I would suggest posting an issue here: [Issues · athombv/homey-apps-sdk-issues · GitHub](https://github.com/athombv/homey-apps-sdk-issues/issues) (include the screenshot, because it shows that the issue isn’t the TS compilation but something else).

---

<div class="post-metadata">

**Author:** ![sekarmaeu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sekarmaeu/32/37697_2.png) [@sekarmaeu](https://community.homey.app/u/sekarmaeu)\
**Post date:** [November 6, 2021, 7:06pm UTC](https://community.homey.app/t/typescript-compilation-failed/54302/7 "2021-11-06T19:06:41Z")

</div>

Okay, I’ll do that. Thanks a lot. I really apreciate your help. 🙂
