I cant imagine that theres any such restriction on dependent variables.
Perhaps you could provide a reprex.