Hi Coco,
hmm, seems like she needs attention. Below I've listed a few things that may help..
1. whilst out and when she is alone, try to leave a radio playing or keep the tv on. Remember if you're going to be gone for long periods to set your tv to go into standby.
2. Just like a baby, if she's crying all night long she either has too much energy, is hungry, or needs to go toilet. I'm assuming it's the first and going by that.. if you have time try to take her for a long walk before bedtime and really work her out. Play fetch and make her run a lot.
3. If wearing her out doesn't work you can always try giving her a snack before bedtime.
4. If she STILL carries on barking, maybe something is disturbing her throughout the night? My Pip goes absolutely crazy at the sound of a fox or badger so keeping her away from the backyard window at night is a must. Try moving your chihuahua to a quiter place or somewhere nearer to you so she feels comforted.
I hope this helps, please let us know if it worked.
We're all crossing our fingers for you

Sarah