can someone help us with this please?

so me and my friends are trying to make hollow knight: silksong before it releases, and i just started the project, but it has an error just as we started. it’s saying a namespace decleration is only allowed in a namespace or module. also, does anybody know how to get multiple people to work on the same project at the smae time?

2 Likes

Hi! It looks like the problem is with the namespace line that you have. As you said, “namespace declaration is only allowed in a namespace or module”. Your namespace was getting defined within a function which isn’t allowed in Typescript. After you get rid of the namespace and remove the export keywords in that function, your program should run.

I’m not sure if this is what you’re looking for, but I think I was able to get your game to run. I would take a look at the code and compare it to what you have, to make sure it looks like what you’re wanting to accomplish. https://makecode.com/_DRELCdHXRUTA

To answer your other question, there is unfortunately no way to do simultaneous coding on the same project like you would do on something like Google docs currently. Working on the same project in MakeCode is a bit tricky. I would take a look at this video for some tips on how to work with others in MakeCode https://youtu.be/Nj9rVZ_3ctY?si=ZDfOoRj2ONY2UYHv&t=154.

4 Likes