Microsoft MakeCode

Error in my code

I am receiving an error that says *cannot redeclare block-scoped variable ‘name’ * can someone help me resolve the issue. Here is a link to my project https://arcade.makecode.com/#editor

Looks like that link isn’t a share link. It will work for you, but not anyone else. To share a link that other’s can use click the share button on top of the editor. Here’s a GIF:

Sorry about that here is a link that you can access. https://makecode.com/_EKPKJ78XRdCx

No problem! That’s a weird bug, it looks like your project added itself as an extension. Anyways, I fixed it by following these steps:

  1. Go to JavaScript
  2. Click the “Explorer” below the simulator to open it
  3. Click the trash can next to the “Maze” extension
  4. Go back to blocks

Or, you can just import this share link from the home screen (the import button)

Thank you so much for the help Richard, my code is now functional.