Buddhism is sometimes compared to solipsism.
Discussions on this topic can be found on the Internet. I do not understand why Buddhism is sometimes compared to solipsism.
As far as I know, in all schools and sects of Buddhism Theravada, Mahayana and Vajrayana there is a doctrine of anatman (no-self), and in all schools and sects of Buddhism a special role is played by compassion (in the Mahayana there are Bodhisattvas who swear to deprive all people of suffering).
Also, all schools of Buddhism say that each person consists of skandhas. How then can this be solipsism?
As far as I understand, Buddhism cannot teach solipsism at all.
Do Theravada, Mahayana and Vajrayana teach solipsism?
Or is it just that someone doesn't understand what they are talking about?