Using record.SPORT_RACKET crashes my app :(

I'm using the most up-to-date I'm trying to do the following

  1. session =
    Record.createSession({:name=>"Squash",
      :sport=>Record.SPORT_RACKET,    
    :subSport=>Record.SUB_SPORT_SQUASH})

... the "Record.SPORT_RACKET" bit comes from autocomplete within VSCode - which implies that it exists in the compiler... but the compiler crashes at this line..   also - the SPORT_RACKET doesn't appear on the API docs ... but who knows how up to date these are (developer.garmin.com/.../ActivityRecording.html)