I just found a workaround. If you copy paste the nodes from a different class, it lets you connect them.