According to Taiwan's Central Weather Bureau, floods and landslides caused by Typhoon Kalmaegi destroyed homes, roads, and cut electricity and water supplies to thousands of people on the island late on Thursday.
National media cited Taiwan's Disaster Relief Center as saying that a girl and a man were killed as a house was buried in a landslide in the southern county of Kaohsiung. A soldier also drowned in a drainage ditch in the western city of Taichung.
The typhoon is now heading to China. Chinese authorities have evacuated 360,000 people from the country's south-east coast and ordered 61,000 ships to port.
Typhoon Kalmaegi is expected to reach the city of Shanghai on Saturday. It will be the seventh typhoon to hit China this year.