I have a main module that I require through a loader and whatever is in the main module just doesn't work.

I use print as a debug method and I added print'1' do the main module and print'2' to the server side scripts that are the children of the module.

In the output only 1 shows up.

I reuploaded the main module to a new model and changed the id in the loader and everything fell apart.

I have no idea why this happened, and when I tried reverting I got the issue again. Any fixes?