This just happened to me, and after some searching here and elsewhere I found that it seems to be an unsettlingly common issue. What was worse is the only solutions anyone had was RMA/replacement. Well, I called HTC customer service and the woman I spoke to was very helpful
She told me that the charging mode may need to be reset and gave the following instructions.
1. Turn phone OFF
2. Let charge for AT LEAST 10mins even if it doesn't look like it's charging (mine DID show the new charging animation)
3. Press and hold POWER + VOL UP + VOL DOWN for AT LEAST 2mins. Anything less will not reset the charge mode.
4. After 2mins release the buttons and the phone should boot as normal.
My phone is now charging normally.
She told me that the charging mode may need to be reset and gave the following instructions.
1. Turn phone OFF
2. Let charge for AT LEAST 10mins even if it doesn't look like it's charging (mine DID show the new charging animation)
3. Press and hold POWER + VOL UP + VOL DOWN for AT LEAST 2mins. Anything less will not reset the charge mode.
4. After 2mins release the buttons and the phone should boot as normal.
My phone is now charging normally.