Landslides left at least 45 dead in Mexico as Tropical Storm Earl dumped heavy rains on the region over the weekend. Now, officials are preparing for a new threat from Javier, which formed off Mexico's Pacific Coast from Earl's remnants and bore down on resort city Cabo San Lucas Monday night.

Weekend mudslides buried communities in two Mexican states. The death toll in central Puebla state rose to 32 after three additional bodies were discovered in mud and floodwaters. The death toll in neighboring Veracruz rose to 13 after two more bodies were found.

Ahead of Javier, residents were evacuated from low-lying areas in Cabo San Lucas, and authorities prepared 10 shelters, most located in local schools. Fishermen hauled their small boats from the ocean, and the resort was closed to navigation.

(MORE: Track Tropical Storm Javier )

Among the casualties of Earl were at least 32 people killed in multiple mudslides in the mountainous north of Puebla state, state Interior Secretary Diodoro Carrasco said. He said rain amounts equivalent to an entire month of normal precipitation fell in one night in some areas.

Of the victims, 25 were killed in different parts of the township of Huauchinango and three died in the hamlet of Tlaola.

"It is a tragedy what has happened to our people in Huauchinango," said Gabriel Alvarado, the Huauchinango mayor.

In neighboring Veracruz state, 13 people lost their lives when mudslides hit the towns of Coscomatepec, Tequila and Huayacocotla, Gov. Javier Duarte said.