Error using leaderboardRecordsHaystack

let leaderBoardRecords = nk.leaderboardRecordsHaystack(id, ownerId, 3, 20);

Hello I want to use this method. But I am getting an error like this how is this possible.

Object has no member 'leaderboardRecordsHaystack'

Leaderboard id is correct and there are dozens of entries on the leaderboard

Looks like you are using old types definitions (nakama-runtime dependency)
Please make sure you’re using 1.22.0 or latest

1 Like