Exporting events as a class instead of module did not seem to fix.