Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Yes. But the invariant polynomials form a polynomial algebra in rank $\mathfrak{g}$ (that is the dimension of a Cartan) variables and are the isotypic component corresponding to the trivial representation. Or am I completely misunderstanding the question?
I think your reference is for a different problem and the statement you are asking about is false even for $\mathfrak{sl}_2$ and the trivial representation (and therefore for every f.d. irreducible representation).