Taiwan on Friday warned the Solomon Islands could fall into a debt trap if the Pacific nation switched diplomatic ties to China and accepted its development aid.