# I'm stuck in JavaScript and can't convert back to blocks!

**URL:** <https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177>\
**Category:** Help\
**Created:** [February 26, 2023, 8:52pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177 "2023-02-26T20:52:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freeando](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/freeando/32/7740_2.png) [@Freeando](https://forum.makecode.com/u/Freeando)\
**Post date:** [February 26, 2023, 8:52pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/1 "2023-02-26T20:52:59Z")

</div>

After pulling changes that my friend made in github, it just converted all the block code into JavaScript automatically without me clicking the button and when I try to convert the code to blocks it just says “Oops, something went wrong trying to convert your code.” We both code with blocks and I know very little JavaScript, so I have to use blocks. It tells me nothing about why it can’t convert, it just says “Oops!” There’s not even a “problems reported” anywhere. Everything seems perfectly fine and convertible to blocks.

Please help!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [February 27, 2023, 6:18pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/2 "2023-02-27T18:18:51Z")

</div>

This seems like a MakeCode issue. Could you share your code/repo so I or the team can look into this?

---

<div class="post-metadata">

**Author:** ![Freeando](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/freeando/32/7740_2.png) [@Freeando](https://forum.makecode.com/u/Freeando)\
**Post date:** [February 27, 2023, 11:28pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/3 "2023-02-27T23:28:44Z")

</div>

> **[GitHub - erikguy/game: gaming](https://github.com/erikguy/game)**
>
> gaming. Contribute to erikguy/game development by creating an account on GitHub.

> **[One Night At Altona's](https://arcade.makecode.com/S25465-01618-81437-30052)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

top link is to repo  
bottom link is to game

---

<div class="post-metadata">

**Author:** ![Darkwolfpupy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Darkwolfpupy](https://forum.makecode.com/u/Darkwolfpupy)\
**Post date:** [March 9, 2023, 4:24pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/4 "2023-03-09T16:24:28Z")

</div>

I have the same problem, I was using blocks for my game and I was going to assets but accidently clicked on Javascript. I tried to go back to blocks but it had the same error - ‘Oops, there is a problem converting your code. We are unable to convert your JavaScript code back to blocks. You can keep working in JavaScript or discard your changes and go back to the previous Blocks version.’ and I don’t know what to do.  
Can you please help me?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 18, 2023, 4:35pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/6 "2023-10-18T16:35:52Z")

</div>

Was this one ever solved in the project itself(@Freeando / @Sarge) or by fixes in the @MakeCode - GitHub integration?

---

<div class="post-metadata">

**Author:** ![Kowalski](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kowalski](https://forum.makecode.com/u/Kowalski)\
**Post date:** [January 12, 2025, 10:45pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/7 "2025-01-12T22:45:10Z")

</div>

I had the same problem as you, some may say that copying the scripts into another project and converting them back to blocks but that didn’t work for me. That’s when I looked into Explorer and I saw the ‘main.py’ tab with a delete option(The coding option for Python). I switched to Python, clicked on the Explorer and deleted the ‘main.py’ tab. That’s when it suddenly switched into blocks. I would try that but I would also recommend duplicating the whole project beforehand in case things go off-course.

---

<div class="post-metadata">

**Author:** ![ragabmaster](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@ragabmaster](https://forum.makecode.com/u/ragabmaster)\
**Post date:** [August 12, 2026, 5:44pm UTC](https://forum.makecode.com/t/im-stuck-in-javascript-and-cant-convert-back-to-blocks/18177/8 "2026-08-12T17:44:17Z")

</div>

you ever solved this? also id love to see the finished game
