Throw TypeError for missing root argument