Ambiguous Mapping Cannot Map Method In Js