# My code seems to big to be decompile in Block

**URL:** <https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637>\
**Category:** Help\
**Created:** [May 7, 2024, 5:52pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637 "2024-05-07T17:52:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darcia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darcia/32/14145_2.png) [@Darcia](https://forum.makecode.com/u/Darcia)\
**Post date:** [May 7, 2024, 5:52pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/1 "2024-05-07T17:52:10Z")

</div>

Hello, here is my project: [https://arcade.makecode.com/S14934-36874-77891-43155](https://arcade.makecode.com/S14934-36874-77891-43155)

For a reason, I can’t use Block anymore. What can I do to have the Block back?

 ![ErrorTooBig](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7749f1bc3ab9e6eeed5d1be524b8fd5917bd480d.png)

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [May 8, 2024, 4:58am UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/2 "2024-05-08T04:58:00Z")

</div>

whats happening is you have an error in your code and until you can fix it, you cant go back into blocks

---

<div class="post-metadata">

**Author:** ![Darcia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darcia/32/14145_2.png) [@Darcia](https://forum.makecode.com/u/Darcia)\
**Post date:** [May 8, 2024, 5:30pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/3 "2024-05-08T17:30:12Z")

</div>

The code works perfectly on the simulator. If there was error in my code, it wouldn’t work on the simulator.

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [May 9, 2024, 12:04am UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/4 "2024-05-09T00:04:08Z")

</div>

hmmm…  
try going into the file explorer and look for any errors with the non-user code files.

---

<div class="post-metadata">

**Author:** ![Darcia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darcia/32/14145_2.png) [@Darcia](https://forum.makecode.com/u/Darcia)\
**Post date:** [May 9, 2024, 1:59pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/5 "2024-05-09T13:59:15Z")

</div>

only main.ts have the error: Can’t decompile because the script is too large.

---

<div class="post-metadata">

**Author:** ![mcodez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mcodez/32/30743_2.png) [@mcodez](https://forum.makecode.com/u/mcodez)\
**Post date:** [May 9, 2024, 10:19pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/6 "2024-05-09T22:19:52Z")

</div>

I believe that your javascript code is just to big overall if I translated it right so it might work its just It cant be turned into blocks

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 9, 2024, 10:28pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/7 "2024-05-09T22:28:22Z")

</div>

@Darcia sorry about that, it’s an old restriction put in place to make sure that people don’t accidentally hang their computers by decompiling gigantic projects.

Here is your script with the blocks restored:

> **[CampJeunes](https://arcade.makecode.com/52214-06977-84238-12993)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 9, 2024, 10:54pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/8 "2024-05-09T22:54:32Z")

</div>

I have [removed this restriction](https://github.com/microsoft/pxt/pull/10010) so this shouldn’t happen again in future versions of arcade (whenever we get around to pushing a new release)

for now, the only real workaround is to just stay in blocks.

---

<div class="post-metadata">

**Author:** ![Darcia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darcia/32/14145_2.png) [@Darcia](https://forum.makecode.com/u/Darcia)\
**Post date:** [May 10, 2024, 8:08pm UTC](https://forum.makecode.com/t/my-code-seems-to-big-to-be-decompile-in-block/28637/9 "2024-05-10T20:08:18Z")

</div>

Thank you!! It works until i come back to the code. So, I must remember to not go on the code.^^
