Error in getting Token Price

I am trying to get the token price from useTokenPrice hook but its giving me this error
Error:
Fetch Price error {“code”: 141, “error”: “Invalid function: “getTokenPrice””}

You ought to use fetchTokenPrice.
You can check Here