What can I do to solve this error?

I finished my game and I tried to publish it using WebGL and It would stay at 0% on the processing page. Then, I tried to post it to unity by attaching the zip file and that doesn’t work either it gives me this error: “[InvalidParameter] The given parameter is missing or invalid:can’t more than 50 (Dependencies)”. Then, I tried to publish it on SIMMER.io and it didn’t work there either. So what I’m trying to figure out is how I can post this on Unity.

Thank you.

Not sure if anyone is still following this thread, but since I couldn’t find anywhere else that had the answer, leaving this for the poor souls like myself that hit this down the road.


ANSWER: After a lot of digging and guessing, I found out that my project had 51 dependencies defined in its package.json. Because I am not familiar with how/why these are all included in the dependency list (despite never actually being used by the game), I removed a couple packages that I knew I weren’t used by uninstalling them via the Package Manager. When I had only 49 dependencies, I was able to build and deploy my game just fine.


I still don’t have an answer for why every single package installed into Unity gets added as a dependency to a game, which is the REAL root cause here, but at least I can build/publish for now and solve that problem another day.