I’ve succesfully made pygbag builds for pygame games before, but not for my game using pygame_gui (City of London 1923). It seems that those are not compatible (because the gui library seems to do some threaded resource loading which I think breaks the web build). I did unfortunately not find a workaround for that issue, but that was last year, so maybe by now there is a solution.