If someone's wish is about a past event, since it cannot be changed now, using 'would' does not make much sense, so you say
I wish you hadn't chewed gum in class!
but not
I wish you wouldn't have chewed gum in class!*
… pleading with the listener — invoking their good will — works if it's about a present or a future situation but not if it's about a past one.
Similarly, when the subject of 'wish' and of the following verb are the same, and even if the wish is about the present or the future and not the past, using 'would' does not make much sense:
I wish I wouldn't chew gum in class!*
should be avoided… Who would plead with themselves? Either you have the will (not) to do something or you don't!
I haven't got a link to a grammar book or website, precisely because the ones I use do not say anything about this problem!