Eggplant Do not eat an eggplant raw. Solanine, the compound which makes potatoes unsafe is present in eggplant as well. Young eggplants or the ones which were harvested early contain large quantities of this compound. Eating eggplant raw can lead to gastrointestinal problems and solanine poisoning. To prevent any such situation, cook your eggplants and then eat them. This way they are safer.