To clarify a bit, if you've already had dengue once, the vaccine is recommended since it makes you less likely to catch the other strains of dengue
and it reduces the odds of severe complications.
However, if you've never had dengue, the vaccine is not recommended since it increases the odds of complications.
This rather odd effect is known as antibody-dependent enhancement: https://en.wikipedia.org/wiki/Antibody-dependent_enhancement
I had dengue once and got vaccinated afterward, since I live in a dengue hotspot. However, not many do, the cost and complexity (~$300 for 3 shots over 18 months, generally not covered by insurance) also dissuades many.