It seems that this is a problem with tsconfig.json not defining the "module" compilerOptions. But I checked on the build version "method is defined everywhere. I don't know how the assets are compiled so I don't really know where to check.
If I compile the assets myself after publishing the project, the files don't have access to the "Sup" class. And I don't know where to import it from.