# Failed to build project (unity toolkit)

**URL:** <https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355>\
**Category:** Bugs\
**Tags:** unity-exporter\
**Created:** [February 4, 2022, 6:18am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355 "2022-02-04T06:18:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [February 4, 2022, 6:18am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/1 "2022-02-04T06:18:09Z")

</div>

Heya all! Just went through Mackey’s video to play around with BJ toolkit. Upgraded typescript to 4.5.5, but getting “failed to build” error with some thread errors that i don’t understand. Any ideas?

 ![Screen Shot 2022-02-03 at 10.15.29 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/b/0b89ee23abd8ae2c7b3285bdfebff393fd4fa387.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 4, 2022, 10:08am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/2 "2022-02-04T10:08:50Z")

</div>

Cc @RaananW and @MackeyK24

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 4, 2022, 11:38am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/3 "2022-02-04T11:38:05Z")

</div>

It’s hard for me to understand the error, is there a log for the actual compilation?  
I can’t answer regarding the toolkit itself. does it work with ts 4.4.x?

---

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [February 4, 2022, 7:31pm UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/4 "2022-02-04T19:31:39Z")

</div>

Hm. I tried with another computer (similar setup with TS 4.5) and i didn’t get the same error (i’m wondering if it’s paths to node/tsc on that other machine. will need to check those).

Got another error though in browser:

 ![Screen Shot 2022-02-04 at 11.22.57 AM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/2/c28a5ed8cf730d9970bb2acc266eee270fe09c5c.png)

Indeed, there’s no gltf generated anywhere in the export directory. Anything else need to be installed that’s not mentioned on the [get started page](https://doc.babylonjs.com/extensions/Unity/Intro)?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 7, 2022, 12:29pm UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/5 "2022-02-07T12:29:55Z")

</div>

Would be great to see a reproduction of that, prefferably on the playground, so we can understand what is wrong.

In general, to get glTF serialization to work you need the serializers package installed along the core lib and as the same version as the core lib. The loaders package is needed to be able to load a glTF into your scene.

---

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [February 19, 2022, 5:40am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/6 "2022-02-19T05:40:37Z")

</div>

Well, there’s not really a playground possible… there’s no GLTF generated by the babylon toolkit. In sum: can’t get the babylon toolkit to work on 2 different computers. It doesn’t output anything / builds fail.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 21, 2022, 8:52pm UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/7 "2022-02-21T20:52:26Z")

</div>

@MackeyK24 is definitely the king for the unity exporter 🙂

---

<div class="post-metadata">

**Author:** ![MackeyK24](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mackeyk24/32/3741_2.png) [@MackeyK24](https://forum.babylonjs.com/u/MackeyK24)\
**Post date:** [February 25, 2022, 5:05am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/8 "2022-02-25T05:05:44Z")

</div>

Are you still having issues ?

---

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [March 2, 2022, 2:32am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/9 "2022-03-02T02:32:53Z")

</div>

Hey @MackeyK24 ! Thx for responding. Yes, still having issues. Seems that on-build, the gltf is not generated. Here’s a screenshot of unity-\>html viewer-\>scenes directory. Maybe just some setting or config missing?

 ![Screen Shot 2022-03-01 at 6.30.40 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/7/070c59cadcfeff5ff3e4af3b10a86c38212d4fdc.jpeg)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 31, 2022, 11:25am UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/10 "2022-03-31T11:25:53Z")

</div>

Pinging @MackeyK24 to take a look when he can 😄

---

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [April 7, 2022, 3:32pm UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/11 "2022-04-07T15:32:52Z")

</div>

Thanks yea - would still love to use the babylon toolkit. Just cant seem to get it to work. Anyone else have it working successfully?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [May 6, 2022, 5:20pm UTC](https://forum.babylonjs.com/t/failed-to-build-project-unity-toolkit/27355/12 "2022-05-06T17:20:13Z")

</div>

Bump bump @MackeyK24
