It’s normally the anti-EV people that seem to go for this angle as a kind of “gotcha”. They are normally the ones spreading the “all the chargers run on diesel generators” misinformation too.
Can you run a charger on a generator? Probably. Is it standard practice or mildly common? Absolutely not.